Architecture
1. Logger, Appenders and Layouts
Logback is built upon three main classes: Logger, Appender, Layout. These three types of components work together to enable developers to log messages according to message type and level, and to control at runtime how these messages are formatted and where they are reported
Logger
- It is part of the logback-classic module
Appender, Layout
- These are part of logback-core
2. Printing methods and the basic selection rule
The printing method determines the level of a logging request. For example, if L is a logger instance, then the statement L.info("..") is a logging statement of level INFO.
Basic Selection Rule
A log request of level p issued to a logger having an effective level q, is enabled if p >= q
3. Parameterized logging
'Logging > LogBack' 카테고리의 다른 글
[LogBack] 3_3. Configuration-Syntax (0) | 2016.06.03 |
---|---|
[LogBack] 3_2. Configuration-with logback-test.xml or logback.xml (0) | 2016.06.02 |
[LogBack] 3_1. Configuration-Automatically (0) | 2016.05.31 |
[LogBack] 1. Introduction (0) | 2016.05.25 |
[LogBack] 0. Define (0) | 2016.05.25 |