Lumber milling is the process where logs are cut into lumber. Modern sawmills use a motorized saw to cut logs lengthwise to make long pieces, and crosswise to length depending on standard or custom sizes .