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 () |
char[] | getLevelName () |
Hierarchy | getHierarchy () |
ulong | getTime () |
ulong | getEpochTime () |
Event | append (char[] x) |
Static Public Member Functions | |
static package void | initialize () |
static ulong | getRuntime () |
Public Attributes | |
package Scratch | scratch |
Static Public Attributes | |
static package char[][] | LevelNames |
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 | |
static ulong | epochTime |
static ulong | beginTime |
Classes | |
struct | Scratch |
class | VersionEventReset |
class | VersionUseEventFreeList |
class | VersionWin32 |
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 69 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!). |
|
Setup the timing information for later use. Note how much effort it takes to get epoch time in Win32 ... Definition at line 157 of file Event.d. References Exception. |
|
Return the number of milliseconds since the executable was started. Definition at line 216 of file Event.d. References version. Referenced by set(). |
|
Set the various attributes of this event. Definition at line 241 of file Event.d. References getRuntime(), hierarchy, and Hierarchy::name. Referenced by LoggerInstance::append(). |
|
Return the message attached to this event. Definition at line 273 of file Event.d. Referenced by Layout::content(). |
|
Return the name of the logger which produced this event Definition at line 284 of file Event.d. Referenced by XmlLayout::header(), SimpleTimerLayout::header(), SimpleLayout::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 297 of file Event.d. Referenced by XmlLayout::footer(), XmlLayout::header(), SimpleTimerLayout::header(), and SimpleLayout::header(). |
|
Return the logger level of this event. |
|
Return the logger level name of this event. Definition at line 319 of file Event.d. Referenced by XmlLayout::header(), SimpleTimerLayout::header(), SimpleLayout::header(), and DateLayout::header(). |
|
Return the hierarchy where the event was produced from Definition at line 330 of file Event.d. Referenced by XmlLayout::footer(). |
|
Return the time this event was produced, relative to the start of this executable Definition at line 342 of file Event.d. Referenced by SimpleTimerLayout::header(), and DateLayout::header(). |
|
Return the time this event was produced, relative to Jan 1st 1970 Definition at line 354 of file Event.d. Referenced by XmlLayout::header(), and 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 366 of file Event.d. Referenced by XmlLayout::footer(), XmlLayout::header(), SimpleTimerLayout::header(), and SimpleLayout::header(). |
|
|
|
|
|
|
|
|
|
Definition at line 76 of file Event.d. Referenced by set(). |
|
|
|
|
|
Definition at line 88 of file Event.d. Referenced by LoggerInstance::append(), XmlLayout::footer(), and DateLayout::header(). |
|
Initial value: [ "TRACE ", "INFO ", "WARN ", "ERROR ", "FATAL ", "NONE " ] |