LogEvent

Contains all information about a logging event, and is passed around between methods once it has been determined that the invoking logger is enabled for output.

Note that Event instances are maintained in a freelist rather than being allocated each time, and they include a scratchpad area for EventLayout formatters to use.

Members

Functions

set
void set(Hierarchy host, Level level, const(char[]) msg, const(char[]) name)

Set the various attributes of this event.

toString
const(char)[] toString()

Return the message attached to this event.

Properties

host
Hierarchy host [@property getter]

Return the hierarchy where the event was produced from

level
Level level [@property getter]

Return the logger level of this event.

levelName
const(char)[] levelName [@property getter]

Return the logger level name of this event.

name
const(char)[] name [@property getter]

Return the name of the logger which produced this event

span
TimeSpan span [@property getter]

Return the time this event was produced, relative to the start of this executable

started
const(Time) started [@property getter]

Return time when the executable started

time
const(Time) time [@property getter]

Return the time this event was produced relative to Epoch

Static functions

toMilli
char[] toMilli(char[] s, TimeSpan time)

Convert a time value (in milliseconds) to ascii

Meta