Node Director
|
Logger used in conjunction with FrontendInterface. More...
Public Member Functions | |
FrontendLogger (Object key) | |
Logger | createLogger (Object key) |
void | startRecord () |
Start recording of log messages. | |
String | stopRecord () |
Stop recording of log messages and return a string containing log messages recorded so far. | |
Public Member Functions inherited from sfi.director.util.Logger | |
Logger (Object key) | |
void | setSubthread (Thread subthread) |
void | unregister () |
void | unregister (Thread thread) |
Logger | getLogger (Object key) |
Logger | getLogger () |
void | indent () |
void | indent (Object key) |
int | getIndent () |
int | getIndent (Object key) |
int | iGetIndent () |
void | outdent () |
void | outdent (Object key) |
void | close () |
void | close (Object key) |
void | setTitle (String title) |
void | setTitle (Object key, String title) |
void | setChain (Logger up) |
void | setChain (Object key, Logger up) |
void | iSetChain (Logger up) |
void | log (int kind, String message) |
void | log (LogEntry log) |
void | log (Object key, LogEntry log) |
void | syslog (LogEntry log) |
Protected Member Functions | |
void | iLog (LogEntry le) |
Protected Member Functions inherited from sfi.director.util.Logger | |
void | iIndent () |
void | iOutdent () |
void | iClose () |
void | iSetTitle (String title) |
Additional Inherited Members | |
Static Public Member Functions inherited from sfi.director.util.Logger | |
static void | register (Object key, Logger thelogger) |
static int | monitoredSize () |
static void | register (Logger thelogger) |
static void | clearLoggers () |
static Object | getKey () |
Static Public Attributes inherited from sfi.director.util.Logger | |
static final int | DEBUG = 0 |
static final int | INFO = 1 |
static final int | NOTICE = 2 |
static final int | WARNING = 3 |
static final int | ERR = 4 |
static final int | CRIT = 5 |
static final int | ALERT = 6 |
static final int | EMERG = 7 |
static int | syslogErrors = 0 |
static final String[] | syslogLevels |
Logger used in conjunction with FrontendInterface.
This logger logs nothing until startRecord() is called. After that any subsequent log messages will be buffered internally until stopRecord() is called and stopRecord() will return a list of record messages to the caller.
sfi.director.application.FrontendLogger.FrontendLogger | ( | Object | key | ) |
Referenced by sfi.director.application.FrontendLogger.createLogger().
Logger sfi.director.application.FrontendLogger.createLogger | ( | Object | key | ) |
Reimplemented from sfi.director.util.Logger.
References sfi.director.application.FrontendLogger.FrontendLogger().
|
protected |
void sfi.director.application.FrontendLogger.startRecord | ( | ) |
Start recording of log messages.
String sfi.director.application.FrontendLogger.stopRecord | ( | ) |
Stop recording of log messages and return a string containing log messages recorded so far.
The String contains one log message per line each preceeded by the word "LOG " and the format of the rest of the line being compatible with LogEntry.LogEntry( String ).