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
Name | Description |
---|---|
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
Name | Description |
---|---|
AgoraLayout
|
A layout with colored LogLevel |
CircularAppender
|
Circular appender which appends to an internal buffer |
PhobosFileAppender
|
A file appender that uses Phobos |
Structs
Name | Description |
---|---|
Logger
|
nothrow wrapper around dtext's Logger |
LoggerConfig
|
Define options to configure a Logger
Loosely inspired from ocean
|
Templates
Name | Description |
---|---|
AddLogger
|
Insert a logger in the current scope, named log |
Aliases
Name | Type | Description |
---|---|---|
Log
|
dtext
|
Convenience alias |
LogLevel
|
dtext
|
Convenience alias |