|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.go.trove.log.Syslog
Contains references to a static Log instance that can be used for general system-wide logging. By default, log messages are written to System.out or System.err. When "installed", all output provided to System.out and System.err is redirected into the system log.
Log| Method Summary | |
static void |
debug(java.lang.String s)
Shortcut to Syslog.log().debug(String). |
static void |
debug(java.lang.Throwable t)
Shortcut to Syslog.log().debug(Throwable). |
static void |
error(java.lang.String s)
Shortcut to Syslog.log().error(String). |
static void |
error(java.lang.Throwable t)
Shortcut to Syslog.log().error(Throwable). |
static LogListener |
getSystemLogEventPrinter()
Returns a simple LogListener that prints debug and info LogEvent messages to System.out and other LogEvent messages to System.err. |
static void |
info(java.lang.String s)
Shortcut to Syslog.log().info(String). |
static void |
info(java.lang.Throwable t)
Shortcut to Syslog.log().info(Throwable). |
static void |
install()
When installed, System.out and System.err are redirected to Syslog.log. |
static Log |
log()
Returns the system Log instance that, by default, only has one LogListener. |
static void |
uninstall()
Uninstalls by restoring System.out and System.err. |
static void |
warn(java.lang.String s)
Shortcut to Syslog.log().warn(String). |
static void |
warn(java.lang.Throwable t)
Shortcut to Syslog.log().warn(Throwable). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Log log()
getSystemLogEventPrinter()public static LogListener getSystemLogEventPrinter()
public static void install()
public static void uninstall()
public static void debug(java.lang.String s)
Syslog.log().debug(String).public static void debug(java.lang.Throwable t)
Syslog.log().debug(Throwable).public static void info(java.lang.String s)
Syslog.log().info(String).public static void info(java.lang.Throwable t)
Syslog.log().info(Throwable).public static void warn(java.lang.String s)
Syslog.log().warn(String).public static void warn(java.lang.Throwable t)
Syslog.log().warn(Throwable).public static void error(java.lang.String s)
Syslog.log().error(String).public static void error(java.lang.Throwable t)
Syslog.log().error(Throwable).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||