colorlog

Members

Aliases

Background
alias Background = BaseColor!10
Undocumented in source.
Color
alias Color = BaseColor!0
Undocumented in source.

Classes

DebugLogger
class DebugLogger
Undocumented in source.
SimpleLogger
class SimpleLogger
Undocumented in source.

Enums

Mode
enum Mode
Undocumented in source.
VerboseMode
enum VerboseMode

The verbosity level of the logging to use.

Functions

color
auto color(string s, Color c)
Undocumented in source. Be warned that the author may not have intended to support it.
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.

Structs

ColorImpl
struct ColorImpl
Undocumented in source.

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.