vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Function registerLogger

Registers a new logger instance.

void registerLogger (
  shared(Logger) logger
);

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

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.