Features of Log4j

There are multiple features of Log4j in the project:

  1. It is thread-safe and not restricted to a predefined set of facilities.
  2. It is optimized for speed.
  3. It is based on a named logger hierarchy.
  4. Logging behavior can be set at runtime using a configuration file.
  5. It supports internationalization.
  6. It supports multiple output appenders per logger.
  7. It uses multiple levels, namely ALL, TRACE, DEBUG, INFO, WARN, ERROR and FATAL.
  8. The format of the log output can be easily changed by extending the Layout class.
  9. We can altered the target of the log output as well as the writing strategy by implementations of the Appender interface.