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

This
alias This = typeof(this)
Undocumented in source.

Static functions

config
void config(OutputStream stream, bool flush)

Initialize the behaviour of a basic logging hierarchy.

convert
Level convert(cstring name, Level def)

Return the enum value associated with name, or a default value

convert
istring convert(Level level)

Return the name associated with level

hierarchy
HierarchyT!(Logger) hierarchy()

Return (and potentially initialize) the hierarchy singleton

lookup
Logger lookup(cstring name)

Return an instance of the named logger

root
Logger root()

Return the root Logger instance.

stats
Stats stats()

Gets the stats of the logger system between two calls to this method.

Structs

Stats
struct Stats

Structure for accumulating number of log events issued.

Meta