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 () |
long | getTime () |
ulong | getEpochTime () |
Event | append (char[] x) |
Static Public Member Functions | |
static | this () |
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 83 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 ... |
|
Return the number of milliseconds since the executable was started. Definition at line 230 of file Event.d. References version. |
|
Set the various attributes of this event. Definition at line 255 of file Event.d. References hierarchy, and Hierarchy::name. Referenced by LoggerInstance::append(). |
|
Return the message attached to this event. Definition at line 287 of file Event.d. Referenced by Layout::content(). |
|
Return the name of the logger which produced this event Definition at line 298 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 311 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 333 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 344 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 356 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 368 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 380 of file Event.d. Referenced by XmlLayout::footer(), XmlLayout::header(), SimpleTimerLayout::header(), and SimpleLayout::header(). |
|
|
|
|
|
|
|
|
|
Definition at line 90 of file Event.d. Referenced by set(). |
|
|
|
|
|
Definition at line 102 of file Event.d. Referenced by LoggerInstance::append(), XmlLayout::footer(), and DateLayout::header(). |
|
Initial value: [ "TRACE ", "INFO ", "WARN ", "ERROR ", "FATAL ", "NONE " ] |