org.opensolaris.opengrok
Class OpenGrokLogger

java.lang.Object
  extended by 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


Method Summary
static java.util.logging.Level getConsoleLogLevel()
           
static java.util.logging.Level getFileLogLevel()
           
static java.lang.String getFileLogPath()
           
static java.util.logging.Logger getLogger()
           
static void setConsoleLogLevel(java.util.logging.Level level)
           
static void setFileLogLevel(java.util.logging.Level level)
           
static void setFileLogPath(java.lang.String path)
           
static java.lang.String setupLogger(java.lang.String logpath, java.util.logging.Level filelevel, java.util.logging.Level consolelevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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