logdefer.logger

Undocumented in source.

Public Imports

logdefer.common
public import logdefer.common : DefaultTimeProvider, DelegateWriter, EventContext, LogEntry, LogLevel, Verbosity;

Members

Aliases

DefaultLogger
alias DefaultLogger = Logger!()
Undocumented in source.
Spec
alias Spec = Tuple!(int, string)
Undocumented in source.
TestLogger
alias TestLogger = Logger!(typeof(serializer), typeof(time))
Undocumented in source.

Functions

testLog
void testLog(TestLogger logger)
Undocumented in source. Be warned that the author may not have intended to support it.
verifyLogs
void verifyLogs(EventContext evt, Spec[] specs)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

Logger
struct Logger(Serializer = JSONSerializer!(DelegateWriter), TimeProvider = typeof(DefaultTimeProvider))

The primary interface into the logging system. Logger is templatized based on:

Variables

events
const(EventContext)[] events;
Undocumented in source.
serializer
auto serializer;
Undocumented in source.
testSpecs
auto testSpecs;
Undocumented in source.
time
auto time;
Undocumented in source.

Meta