The four-dimensional Ising model is studied to probe the possibility of observing in Monte Carlo simulations the logarithmic corrections to the mean-field theory near criticality. The finite-size-scaling behavior for the correlation length is proposed. The scaling forms of the finite-size renormalized coupling, susceptibility, and fourth field derivative at the renormalized tree-level approximation are derived. These results are used to analyze simulation data of the simple hypercubic lattices of sizes 4L14, near criticality. Our simulation results are in agreement with the presence of logarithmic corrections and recent field-theoretical calculations of the specific heat. The approach to the nonscattering theory is observed and is consistent with the predicted logarithmic finite-size dependence.