Inheritance diagram for LoggerInstance:
Public Member Functions | |
bool | isEnabled (Level level) |
bool | isBreakpoint () |
bool | isAdditive () |
void | trace (char[] msg) |
void | info (char[] msg) |
void | warn (char[] msg) |
void | error (char[] msg) |
void | fatal (char[] msg) |
char[] | getName () |
Level | getLevel () |
void | setLevel (Level level) |
void | setLevel (Level level, bool force) |
void | setBreakpoint (bool enabled) |
void | setAdditive (bool enabled) |
void | addAppender (Appender next) |
void | clearAppenders () |
ulong | getUptime () |
Protected Member Functions | |
this (Hierarchy hierarchy, char[] name) | |
Private Member Functions | |
final void | append (Level level, char[] s) |
final bool | isCloserAncestor (LoggerInstance other) |
Static Private Member Functions | |
Logger | getRootLogger () |
Logger | getLogger (char[] name) |
Private Attributes | |
LoggerInstance | next |
LoggerInstance | parent |
char[] | name |
Level | level |
Appender | appender |
Hierarchy | hierarchy |
bool | additive |
bool | breakpoint |
Static Private Attributes | |
char[][] | LevelNames |
Definition at line 58 of file Hierarchy.d.
|
Construct a LoggerInstance with the specified name for the given hierarchy. By default, logger instances are additive and are prohibited from emitting events. Definition at line 78 of file Hierarchy.d. References Hierarchy::name. |
|
Is this logger enabed for the specified Level? Reimplemented from Logger. Definition at line 92 of file Hierarchy.d. Referenced by append(). |
|
Is this a breakpoint Logger? Definition at line 103 of file Hierarchy.d. References breakpoint. |
|
Is this logger additive? That is, should we walk ancestors looking for more appenders? Reimplemented from Logger. Definition at line 115 of file Hierarchy.d. References additive. |
|
Append a trace message Reimplemented from Logger. Definition at line 126 of file Hierarchy.d. References append(). |
|
Append an info message Reimplemented from Logger. Definition at line 137 of file Hierarchy.d. References append(). |
|
Append a warning message Reimplemented from Logger. Definition at line 148 of file Hierarchy.d. References append(). |
|
Append an error message Reimplemented from Logger. Definition at line 159 of file Hierarchy.d. References append(). |
|
Append a fatal message Reimplemented from Logger. Definition at line 170 of file Hierarchy.d. References append(). |
|
Return the name of this Logger (sans the appended dot). Reimplemented from Logger. Definition at line 181 of file Hierarchy.d. |
|
Return the Level this logger is set to Reimplemented from Logger. Definition at line 195 of file Hierarchy.d. |
|
Set the current level for this logger (and only this logger). Reimplemented from Logger. Definition at line 206 of file Hierarchy.d. |
|
Set the current level for this logger, and (optionally) all of its descendents. Reimplemented from Logger. Definition at line 218 of file Hierarchy.d. References Hierarchy::updateLoggers(). |
|
Set the breakpoint status of this logger. Definition at line 230 of file Hierarchy.d. References breakpoint, and Hierarchy::updateLoggers(). |
|
Set the additive status of this logger. See isAdditive(). Reimplemented from Logger. Definition at line 242 of file Hierarchy.d. References additive. |
|
Add (another) appender to this logger. Appenders are each invoked for log events as they are produced. At most, one instance of each appender will be invoked. Reimplemented from Logger. Definition at line 255 of file Hierarchy.d. References appender, and Appender::setNext(). |
|
Remove all appenders from this Logger Reimplemented from Logger. Definition at line 268 of file Hierarchy.d. References appender. |
|
Get number of milliseconds since this application started Reimplemented from Logger. Definition at line 280 of file Hierarchy.d. |
|
Append a message to this logger via its appender list. Definition at line 291 of file Hierarchy.d. References additive, Appender::append(), appender, Appender::getMask(), Appender::getNext(), isEnabled(), parent, and Event::set(). Referenced by error(), fatal(), info(), trace(), and warn(). |
|
See if the provided Logger is a good match as a parent of this one. Note that each Logger name has a '.' appended to the end, such that name segments will not partially match. Definition at line 339 of file Hierarchy.d. References name. |
|
Return the root Logger instance. This is the ancestor of all loggers and, as such, can be used to manipulate the entire hierarchy. For instance, setting the root 'level' attribute will affect all other loggers in the tree. Definition at line 93 of file Logger.d. Referenced by PropertyConfigurator::configure(), BasicConfigurator::defaultAppender(), and AdminServlet::setLoggerLevel(). |
|
Return an instance of the named logger. Names should be hierarchical in nature, using dot notation (with '.') to seperate each name section. For example, a typical name might be something like "mango.io.Buffer". If the logger does not currently exist, it is created and inserted into the hierarchy. A parent will be attached to it, which will be either the root logger or the closest ancestor in terms of the hierarchical name space. Definition at line 112 of file Logger.d. Referenced by PropertyConfigurator::configure(), main(), AdminServlet::setLoggerLevel(), ServletContext::this(), and AdminServlet::this(). |
|
Definition at line 60 of file Hierarchy.d. Referenced by Hierarchy::insertLogger(). |
|
Definition at line 60 of file Hierarchy.d. Referenced by append(). |
|
Definition at line 63 of file Hierarchy.d. Referenced by Hierarchy::insertLogger(), and isCloserAncestor(). |
|
Definition at line 64 of file Hierarchy.d. Referenced by Hierarchy::propogate(). |
|
Definition at line 65 of file Hierarchy.d. Referenced by addAppender(), append(), and clearAppenders(). |
|
Definition at line 66 of file Hierarchy.d. |
|
Definition at line 67 of file Hierarchy.d. Referenced by append(), isAdditive(), and setAdditive(). |
|
Definition at line 67 of file Hierarchy.d. Referenced by isBreakpoint(), Hierarchy::propogate(), and setBreakpoint(). |
|
Initial value: ["TRACE " "INFO " "WARN " "ERROR " "FATAL " "NONE "] |