Project log4j Debugging on --verbose

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

This is a development pattern that routes log4j logging information to stderr if -v|--verbose command line option is used. Projects that implement it are clad, os-stats, etc.

Procedure

Use novaordis-utilities 4.2 or newer.


https://github.com/NovaOrdis/novaordis-utilities/blob/master/src/main/java/io/novaordis/utilities/logging/StderrVerboseLogging.java

as follows:

TODO