Public Member Functions | |
void | set (Hierarchy hierarchy, Level level, char[] msg, char[] name) |
override char[] | toString () |
char[] | getName () |
char[] | getContent () |
Level | getLevel () |
Hierarchy | getHierarchy () |
long | getTime () |
uint | getEpochSeconds () |
ulong | getEpochMilliSeconds () |
uint | getMilliSeconds () |
Event | append (char[] x) |
Static Public Member Functions | |
this () | |
ulong | getUptime () |
Public Attributes | |
package Scratch | scratch |
Private Attributes | |
char[] | msg |
char[] | name |
ulong | time |
Level | level |
Hierarchy | hierarchy |
Static Private Attributes | |
uint | epochTime |
ulong | beginTime |
Note that Event instances are maintained in a freelist rather than being allocated each time, and they include a scratchpad area for Layout formatters to use.
Definition at line 83 of file Event.d.
|
Setup the timing information for later use. Note how much effort it takes to get epoch time in Win32 ... |
|
Return the number of milliseconds since the executable was started. Definition at line 220 of file Event.d. Referenced by set(). |
|
Set the various attributes of this event. Definition at line 246 of file Event.d. References getUptime(). Referenced by LoggerInstance::append(). |
|
Return the message attached to this event. Definition at line 278 of file Event.d. Referenced by Layout::content(). |
|
Return the name of the logger which produced this event Definition at line 289 of file Event.d. Referenced by DateLayout::header(). |
|
Return the scratch buffer for formatting. This is a thread safe place to format data within, without allocating any memory. |
|
Return the logger level of this event. Definition at line 313 of file Event.d. Referenced by Layout::levelString(). |
|
Return the hierarchy where the event was produced from |
|
Return the time this event was produced Definition at line 335 of file Event.d. References time. Referenced by SimpleTimerLayout::header(). |
|
Return the number of seconds since Jan 1st 1970 Definition at line 346 of file Event.d. References time. Referenced by DateLayout::header(). |
|
Return the number of milliseconds since Jan 1st 1970 Definition at line 357 of file Event.d. References time. |
|
Isolate the millisecond portion of the event timestamp Definition at line 368 of file Event.d. References time. Referenced by DateLayout::header(). |
|
Append some content to the scratch buffer. This is limited to the size of said buffer, and will not expand further. Definition at line 380 of file Event.d. Referenced by SimpleTimerLayout::header(), and SimpleLayout::header(). |
|
Definition at line 91 of file Event.d. Referenced by LoggerInstance::append(), and DateLayout::header(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|