|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccs.utils.LogShaper
public class LogShaper
Utilities to make the logging mechanism play slightly more nicely than it does by default.
Nested Class Summary | |
---|---|
static class |
LogShaper.ConsoleHandler
A log handler which puts messages to the correct stream, depending on severity. |
static class |
LogShaper.LogFormatter
A log formatter which uses the Checkpoint MsgHelper methods to format log entries. |
Constructor Summary | |
---|---|
LogShaper()
|
Method Summary | |
---|---|
static boolean |
isDebug(java.util.logging.Logger log)
Whether the logger is set to a debugging level. |
static boolean |
isInfo(java.util.logging.Logger log)
Whether the logger is set to an information level. |
static boolean |
isTrace(java.util.logging.Logger log)
Whether the logger is set to a trace level. |
static void |
shapeLogger(java.util.logging.Logger log)
Set a logger to use the ConsoleHandler and LogFormatter defined here. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogShaper()
Method Detail |
---|
public static void shapeLogger(java.util.logging.Logger log)
public static boolean isTrace(java.util.logging.Logger log)
public static boolean isDebug(java.util.logging.Logger log)
public static boolean isInfo(java.util.logging.Logger log)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |