Page Text: FATAL ERROR WARN INFO DEBUG TRACE
AsyncAppender, JDBCAppender, JMSAppender, LF5Appender, NTEventLogAppender, NullAppender, SMTPAppender, SocketAppender, SocketHubAppender, SyslogAppender, TelnetAppender, WriterAppender
Widely used in many projects and platforms
Apache License, Version 2.0
SEVERE WARNING INFO CONFIG FINE FINER FINEST
Sun’s default Java Virtual Machine (JVM) has the following: ConsoleHandler, FileHandler, SocketHandler, MemoryHandler
Comes with the JRE
FATAL ERROR WARN INFO DEBUG TRACE
Depends on the underlying framework
Widely used, in conjunction with log4j
Apache License, Version 2.0
ERROR WARN INFO DEBUG TRACE
Depends on the underlying framework, which is pluggable
MIT License
ERROR WARNING INFO DEBUG TRACE
ConsoleWriter, FileWriter, LogcatWriter, JdbcWriter, RollingFileWriter, SharedFileWriter and null (discards all log entries)
Apache License, Version 2.0
ERROR WARN INFO DEBUG TRACE
Too many to list: see Appender JavaDoc
Used in many projects like Akka, Apache Camel, Apache Cocoon, Artifactory, Gradle, Lift Framework, Play Framework, Scalatra, SonarQube, etc…
LGPL, Version 2.1
Summary
Apache Commons Logging isn’t really a logging framework, but a wrapper for one. As such, it requires a logging framework underneath it. It is particularly useful when developing reusable libraries which need to write to whichever underlying logging system is being used by the application. It also provides flexibility in heterogeneous environments where the logging framework is likely to change, although in most cases, once a logging framework has been chosen, there is little need to change it over the life of the project.
The Java Logging API is also not a logging framework, but a standard API for accessing a logging framework. Compatible frameworks can be loaded into JVM and accessed via the API. There is also a logging implementation supplied with the Sun JVM which is the default logging framework accessed by the API. Many developers confuse this implementation with the Java Logging API.
Note
If you wish to build up your Java Logging knowledge first, check out our java.util.logging Example .
Java Logging Tutorials – Getting Started
Simple examples based on the Java Logging