|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.utilities.logger.HackystatLogger
public final class HackystatLogger
Supports logging of informational and error messages by a service. Uses HackystatUserHome.getHome() to determine where to put the logs directory.
Method Summary | |
---|---|
static java.util.logging.Logger |
getLogger(java.lang.String loggerName)
Return the Hackystat Logger named with loggerName, creating it if it does not yet exist. |
static java.util.logging.Logger |
getLogger(java.lang.String loggerName,
java.lang.String subDir)
Return the Hackystat Logger named with loggerName, creating it if it does not yet exist. |
static java.util.logging.Logger |
getLogger(java.lang.String loggerName,
java.lang.String subDir,
boolean hasConsole)
Return the Hackystat Logger named with loggerName, creating it if it does not yet exist. |
static void |
setLoggingLevel(java.util.logging.Logger logger,
java.lang.String level)
Sets the logging level to be used for this Hackystat logger. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.logging.Logger getLogger(java.lang.String loggerName)
loggerName
- The name of this HackystatLogger.
public static java.util.logging.Logger getLogger(java.lang.String loggerName, java.lang.String subDir)
loggerName
- The name of this HackystatLogger.subDir
- The .hackystat subdirectory in which the log/ directory should be put.
public static java.util.logging.Logger getLogger(java.lang.String loggerName, java.lang.String subDir, boolean hasConsole)
loggerName
- The name of this HackystatLogger.subDir
- The .hackystat subdirectory in which the log/ directory should be put.hasConsole
- If true, then a ConsoleHandler is created.
public static void setLoggingLevel(java.util.logging.Logger logger, java.lang.String level)
logger
- The logger whose level is to be set.level
- The new Level.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |