colorlog

Members

Enums

VerboseMode
enum VerboseMode

The verbosity level of the logging to use.

Functions

confLogger
void confLogger(VerboseMode mode)

Configure std.experimental.logger with a colorlog instance.

initColors
void initColors()

It will detect whether or not stdout/stderr are a console/TTY and will consequently disable colored output if needed.

Meta

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)

Handles console logging in pretty colors.

The module disables colors when stdout and stderr isn't a TTY that support colors. This is to avoid ASCII escape sequences in piped output.