vibe.d beta banner
get vibe.d
0.7.30

Function registerLogger

Registers a new logger instance.

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

Prototype

void registerLogger(
  shared(Logger) logger
) nothrow;

Examples

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

See Also

deregisterLogger

Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.