Java logging framework: Difference between revisions

Content deleted Content added
m Reverted edits by 221.134.71.171 (talk) to last version by 193.190.194.194
Line 8:
 
===Logger===
Most frameworks support the notion of a Logger. A Logger is an object that allows the application to log data without regard to where the data is actually logged. The application logs a message in the form of an object or andan object and exception. When a Logger is created, it is given a name or an identifier. When logging a message, it is logged at a certain level or priority.
====Name====
A logger has a name. The name is usually hierarchical, with periods (.) separating the levels. A common naming scheme is to use the name of the class or package that is doing the loggings. Both [[log4j]] and the Java API supported defining Handlers higher up the hierarchy.