##Tasks
- logging to console;
- logging to a log file:
- log files saved in
./log
, - logs cannot exceed 3Gb,
- logs cannot be older than 1 month,
- a log file cannot exceed 3Mb,
- a new file is created every day;
- log files saved in
- different logging configurations for
main
andtest
. - pop-up appender;
- log file in HTML format;
- dynamic logging level adjustment.
logback
uses the same facade as log4j, namelyslf4j
. Thus, to my knowledge, there is no changes to be made in scripts usingslf4j
to log.slf4j
is a dependency oflogback
, thus it is only needed to importlogback
inpom.xml
.logback
configuration is made inlogback.xml
for main scripts (respectivelylogback-test.xml
for tests):log4j.properties
is to be deleted.- rolling html log files policy is defined in the
logback.xml
andlogback-test.xml
files.
- Addition of an extended appender for the logs popped up in a window.
- Refactoring of
LoggerConfig.setUp
to ensure that the log level can be set in the app properties.