Log4j is a logging library from Apache. It consists of loggers (log events) and appenders (a destination for a log message). There’s always a rootLogger defined, plus however many other loggers you require. A logger can have several appenders attached to it which can format and write the message to the console or a file [...]