Node Director
|
Logger used in conjunction with CLI. More...
Public Member Functions | |
CLILogger (Object key) | |
void | setVerbose () |
int | getVerbose () |
void | setSyslog (boolean enable) |
Logger | createLogger (Object key) |
void | syslog (LogEntry le) |
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) |
Static Public Member Functions | |
static void | setDefaultVerbose () |
static int | getDefaultVerbose () |
static void | setDefaultSyslog (boolean enable) |
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 () |
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 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 CLI.
This logger writes log messages to stdout. Depending on command line arguments it will be more verbose or less verbose, thus writing out NOTICE level messages or not. CLILogger also allows switching off syslog().
sfi.director.cli.CLILogger.CLILogger | ( | Object | key | ) |
Referenced by sfi.director.cli.CLILogger.createLogger().
Logger sfi.director.cli.CLILogger.createLogger | ( | Object | key | ) |
Reimplemented from sfi.director.util.Logger.
References sfi.director.cli.CLILogger.CLILogger().
|
static |
Referenced by sfi.director.cli.init.run().
int sfi.director.cli.CLILogger.getVerbose | ( | ) |
Referenced by sfi.director.cli.serverstatus.run().
|
protected |
Reimplemented from sfi.director.util.Logger.
References sfi.director.util.Logger.DEBUG, sfi.director.util.Tools.debuglev, sfi.director.util.Logger.ERR, sfi.director.util.LogEntry.getIndent(), sfi.director.util.LogEntry.getLevel(), sfi.director.util.LogEntry.getMangle(), sfi.director.util.LogEntry.getMessage(), sfi.director.util.Logger.NOTICE, and sfi.director.util.Logger.WARNING.
|
static |
|
static |
Referenced by sfi.director.cli.debug.run(), and sfi.director.cli.init.run().
void sfi.director.cli.CLILogger.setSyslog | ( | boolean | enable | ) |
Referenced by sfi.director.cli.serverstatus.run().
void sfi.director.cli.CLILogger.setVerbose | ( | ) |
void sfi.director.cli.CLILogger.syslog | ( | LogEntry | le | ) |
Reimplemented from sfi.director.util.Logger.
References sfi.director.util.LogEntry.getLevel(), and sfi.director.util.Logger.NOTICE.