Log

Manager for routing Logger calls to the default hierarchy. Note that you may have multiple hierarchies per application, but must access the hierarchy directly for root() and lookup() methods within each additional instance.

Members

Aliases

getLogger
alias getLogger = lookup
Undocumented in source.
opCall
alias opCall = formatln
Undocumented in source.

Properties

root
Logger root [@property getter]

Return the root Logger instance. This is the ancestor of all loggers and, as such, can be used to manipulate the entire hierarchy. For instance, setting the root 'level' attribute will affect all other loggers in the tree.

time
Time time [@property getter]

Return the current time

Static functions

config
void config(OutputStream stream, bool flush)

Initialize the behaviour of a basic logging hierarchy.

convert
Level convert(const(char[]) name, Level def)

Return the level of a given name

convert
const(char)[] convert(int level)

Return text name for a log level

formatln
void formatln(const(char[]) fmt, ...)

Pedestrian usage support, as an alias for Log.root.info()

hierarchy
Hierarchy hierarchy()

Return the singleton hierarchy.

lookup
Logger lookup(const(char[]) name)

Return an instance of the named logger. Names should be hierarchical in nature, using dot notation (with '.') to separate each name section. For example, a typical name might be something like "tango.io.Stdout".

Meta