Module agora.utils.Log

Utilities to deal with logging

module agora.foo.bar;

import agora.utils.Log;

mixin AddLogger!();

void myFunctionThatLogs (int arg = 42)
{
    log.info("[{}:{}] My argument is: {}", __FILE__, __LINE__, arg);
}

Functions

NameDescription
configureLogger(settings, clear) Configure a Logger based on the provided settings
setVibeLogLevel(level) Set Vibe.d log level according to the configuration's log level

Classes

NameDescription
AgoraLayout A layout with colored LogLevel
CircularAppender Circular appender which appends to an internal buffer
PhobosFileAppender A file appender that uses Phobos

Structs

NameDescription
Logger nothrow wrapper around dtext's Logger
LoggerConfig Define options to configure a Logger Loosely inspired from ocean.utils.log.Config

Templates

NameDescription
AddLogger Insert a logger in the current scope, named log

Aliases

NameTypeDescription
Log dtext.log.Logger.Log Convenience alias
LogLevel dtext.log.ILogger.ILogger.Level Convenience alias