Log4J Flashcards
Log4J
A logging tool that helps us keep track of whats going on inside of code
What outputs can Log4J send to?
Database
File
Console
UniSys Log
Levels=> What to log
(Worst) Fatal Error Warn Info Debug Trace (Least Bad)
Appenders
Where to log
Log4J Features
Thread safe Multiple appenders support Customization High speed optimization Various logging levels
Advantages
quick debugging
easy maintenance
structured storage
Disadvantages
slows down app
scrolling blindness
Core Objects: Loggers
register the class to the logger gathers the logging info and are captured in the namespace hierarchy
Core Objects: Appenders
publishes the logging info to the respective destination(s)
lower level object
Core Objects: Layouts
styling the logging information for readability
Support Core Objects: Level
Defines granularity and priority of bugging info
Support Core Objects: Filter
Analyse and decide whether to keep the logged info
Appenders can use multiple filters
Tell the appender whether or not to print the logs to the respective destination
Support Core Objects: Object Renderer
Provides the string representation of the lagging information
Support Core Objects: Log Manager
Reads configuration parameters