Java logging framework: Difference between revisions

Content deleted Content added
m Reverting possible vandalism by 115.249.70.178 to version by 80.153.244.80. False positive? Report it. Thanks, ClueBot NG. (852944) (Bot)
Functionality overview: deleted superfluous statement: accepts the message object and
Line 9:
 
== Functionality overview ==
Logging is broken into three major pieces: the Logger, Formatter and the Handler (Appender). The Logger is responsible for capturing the message to be logged along with certain metadata and passing it to the logging framework. After receiving the message, the framework calls the Formatter with the message. The Formatter accepts the message object and formats it for output. The framework then hands the formatted message to the appropriate Appender for disposition. This might include a console display, writing to disk, appending to a database, or email.
 
Simpler logging frameworks, like Java Logging Framework by the Object Guy, combine the logger and the appender. This simplifies default operation, but it is less configurable, especially if the project is moved across environments.