registerLogger

Registers a new logger instance.

The specified Logger will receive all log messages in its Logger.log method after it has been registered.

nothrow
void
registerLogger
(
shared(Logger) logger
)

Examples

auto logger = cast(shared)new HTMLLogger("log.html");
logger.lock().format = FileLogger.Format.threadTime;
registerLogger(logger);

See Also

deregisterLogger

Meta