This configuration file does the following:
line 2: Creates an appender named myAppender using appender class LoggerAppenderFile which is used for logging to a file.
line 3: Sets the file parameter, which tells the appender to which file to write.
line 6: Sets the root logger level to WARN. This means that logging requests with the level lower than WARN will not be logged by the root logger.
line 7: Links myAppender to the root logger so that all events recieved by the root logger will be forwarded to myAppender and written into the log file.
To try it out, run the following code: