donaricano-btn

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


블로그 이미지

리딩리드

,