mirror of
https://github.com/vacp2p/linea-besu.git
synced 2026-01-08 23:17:54 -05:00
* [NC-1540] First Draft of OSS Roles & Std OSS Documentation - OSS Docs & Templates Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
1.2 KiB
1.2 KiB
Logging
This project employs the logging utility Apache Log4j, accordingly levels of detail can be specified as follows:
OFF: The highest possible rank and is intended to turn off logging.
FATAL: Designates very severe error events that will presumably lead the application to abort.
ERROR: Designates error events that might still allow the application to continue running.
WARN: Designates potentially harmful situations.
INFO: Designates informational messages that highlight the progress of the application at coarse-grained level.
DEBUG: Designates fine-grained informational events that are most useful to debug an application.
TRACE: Designates finer-grained informational events than the DEBUG.
ALL: All levels including custom levels.
One mechanism of globally effecting the log output of a running client is though modification the file
/pantheon/src/main/resources/log4j2.xml, where it can be specified under the <Property name="root.log.level">.
As such, corresponding instances of information logs throughout the codebase, e.g. log.fatal("Fatal Message!");,
will be rendered to the console while the client is in use.