Log role:
- 1. Fault Locator
- 2. Display the running status
Logging can be a good way to provide enough basis for us locate the problem, so we have introduced logback components to logging
1. Logback standard configuration
1.1 Logback main modules:
- Logback-access: integration with servlet container, providing access to logs via http function. Third-party software can be accessed through log records Logback Logback-access this module
- Logcbak-classic: is a modified version of log4j, while completing implementation of the relevant API, easily replaced with other logging system
- Logback-core: it provides basic services for the first two modules
1.2 Logback major labels:
- logger: recording a log, the log is mainly used to store objects, the log can also define the type, severity and the like.
- appender: destination specifies the log output, which can be the console, file, remote socket servers.
- layout: used to format the log information output.