Now, we will create two property files to src/main/resources/ , right-click to create a new file called log4j.properties with below settings. After running the app, you can find the log file (SpringMVCExample.log) under C:\logs\ folder. # logger option for File and stdout log4j.rootLogger=INFO, File, stdout # Logging levels : ALL, DEBUG, INFO, WARN, ERROR, FATAL,