Java / log4j
Advantages of using log4j framework.
- Thread safe.
- Optimized for performance.
- Supports more than one appender per logger.
- Logging behavior is specified in a configuration file loaded during runtime.
- Supports different logging levels such as WARN, INFO, and ERROR.
- The logging format can be easily changed my altering the Layout class or by extending it.
- The destination and the log writing strategy can be altered by implementing Appender interface.
More Related questions...