Inheritance diagram for Event:
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 Types | |
enum | Level { Trace = 0, Info, Warn, Error, Fatal, None } |
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 78 of file Event.d.
|
These represent the standard LOG4J event levels. Note that Debug is called Trace here, because debug is a reserved word in D (this needs to be fixed!). Definition at line 55 of file ILevel.d. Referenced by CacheServer::LoaderThread::load(), TaskServer::TaskConsumer::notify(), CacheInvalidatee::notify(), Hierarchy::propogate(), ClusterThread::run(), and ClusterQueue::run(). |
|
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 215 of file Event.d. Referenced by set(). |
|
Set the various attributes of this event. Definition at line 240 of file Event.d. References getUptime(). Referenced by LoggerInstance::append(). |
|
Return the message attached to this event. Definition at line 272 of file Event.d. Referenced by Layout::content(). |
|
Return the name of the logger which produced this event Definition at line 283 of file Event.d. Referenced by XmlLayout::header(), and DateLayout::header(). |
|
Return the scratch buffer for formatting. This is a thread safe place to format data within, without allocating any memory. Definition at line 296 of file Event.d. Referenced by XmlLayout::footer(), and XmlLayout::header(). |
|
Return the logger level of this event. Definition at line 307 of file Event.d. Referenced by Layout::levelString(). |
|
Return the hierarchy where the event was produced from Definition at line 318 of file Event.d. Referenced by XmlLayout::footer(). |
|
Return the time this event was produced Definition at line 329 of file Event.d. References time. Referenced by SimpleTimerLayout::header(). |
|
Return the number of seconds since Jan 1st 1970 Definition at line 340 of file Event.d. References time. Referenced by DateLayout::header(). |
|
Return the number of milliseconds since Jan 1st 1970 Definition at line 351 of file Event.d. References time. Referenced by XmlLayout::header(). |
|
Isolate the millisecond portion of the event timestamp Definition at line 362 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 374 of file Event.d. Referenced by XmlLayout::footer(), XmlLayout::header(), SimpleTimerLayout::header(), and SimpleLayout::header(). |
|
Definition at line 86 of file Event.d. Referenced by LoggerInstance::append(), XmlLayout::footer(), and DateLayout::header(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|