line 2 , here we are using RollingFileAppender . it will role the file if maximum file eceeds the size =3000kb
as mentioned in the line 5
line 3 to create file name called workshop_test.log where all logs are available in your root java_project
line 6 and 7 used for how the logs format to be logged on file .
important line 8. tells that from which level the log to printed .
levels like 1. trace 2.debug 3.info 4.warn 5. error 6. fatal. In production environment change the debug level to
error level to avoid unnessary log getting printed in file.