org.opensolaris.opengrok
Class OpenGrokLogger
java.lang.Object
org.opensolaris.opengrok.OpenGrokLogger
public final class OpenGrokLogger
- extends java.lang.Object
Util class to set up Logging using the Console and FileLog formatter classes
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getFileLogPath
public static java.lang.String getFileLogPath()
getLogger
public static java.util.logging.Logger getLogger()
setConsoleLogLevel
public static void setConsoleLogLevel(java.util.logging.Level level)
getConsoleLogLevel
public static java.util.logging.Level getConsoleLogLevel()
setFileLogLevel
public static void setFileLogLevel(java.util.logging.Level level)
getFileLogLevel
public static java.util.logging.Level getFileLogLevel()
setFileLogPath
public static void setFileLogPath(java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException
setupLogger
public static java.lang.String setupLogger(java.lang.String logpath,
java.util.logging.Level filelevel,
java.util.logging.Level consolelevel)
throws java.io.IOException
- Throws:
java.io.IOException