logdefer ~master (2019-11-12T09:37:11Z)
Home
Dub
Repo
logdefer.logger
logdefer
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
Source
See Source File
logdefer
modules
common
logger
serializer
time
timer