Package org.refcodes.logger.alt.console
The
ConsoleLogger
implements the
Logger
interface for providing logging
functionality for extended pimped console output (via System.out
and
System.err
to be used by RuntimeLogger
implementations.
The ConsoleLogger
by default uses
the org.refcodes.runtime.SystemUtility.getTerminalWidth()
method, which determines the width in characters of the system's console in
use. In case you pass a "-Dconsole.width=n
" JVM argument, then
your width is taken, else the actual console's width is being tried to be
determined. See also SystemProperty.CONSOLE_WIDTH
.
You can also use the AbstractConsoleLogger.setRowWidth(int)
or
ConsoleLogger.withRowWidth(int)
method in order to programmatically
set the console's row width.
-
Class Summary Class Description AbstractConsoleLogger<T> TheAbstractConsoleLogger
implements theLogger
interface for providing logging functionality with extended pimped console output (viaSystem.out
and (via sub-classing alsoSystem.err
).ConsoleLogger Specialized subclass of theAbstractConsoleLogger
for handlingRuntimeLogger
's logs with ANSI Escape-Codes.ConsoleLoggerHeader The Class ConsoleLoggerHeaderImpl.ConsoleLoggerSingleton ThisConsoleLoggerSingleton
provides aConsoleLogger
singleton . -
Enum Summary Enum Description AbstractConsoleLogger.OutputPrintStream The Enum OutputPrintStream.