org.perf.log.app.logger
Class AppLoggerImpl

java.lang.Object
  extended by org.perf.log.app.logger.AppLoggerImpl
All Implemented Interfaces:
Logger

public class AppLoggerImpl
extends java.lang.Object
implements Logger


Constructor Summary
AppLoggerImpl(java.lang.String loggerName)
           
 
Method Summary
 void debug(java.lang.String msg)
          Log a message at the DEBUG level.
 void debug(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the DEBUG level with an accompanying message.
 void error(java.lang.String msg)
          Log a message at the ERROR level.
 void error(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the ERROR level with an accompanying message.
 void fine(java.lang.String msg)
          Log a message at the fine level.
 void fine(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the fine level with an accompanying message.
 void finest(java.lang.String msg)
          Log a message at the finest level.
 void finest(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the FINEST level with an accompanying message.
static java.lang.String getLogDestination()
           
static java.lang.String getLogFileInitialLevel()
           
static int getLogFileMaxSize()
           
static java.lang.String getLogFileName()
           
static int getLogFileNumToKeep()
           
static java.lang.String getLogFileRootDir()
           
 java.lang.String getLoggerName()
           
static java.lang.String getLogRootDirForThisJVM()
           
 void info(java.lang.String msg)
          Log a message at the INFO level.
 void info(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the INFO level with an accompanying message.
static boolean isUseAsynchronousLogging()
           
 void setLevel(java.util.logging.Level level)
           
static void setLogDestination(java.lang.String logDestination)
           
static void setLogFileInitialLevel(java.lang.String logFileInitialLevel)
           
static void setLogFileMaxSize(int inLogFileMaxSize)
           
static void setLogFileName(java.lang.String inLogFileName)
           
static void setLogFileNumToKeep(int inLogFileNumToKeep)
           
static void setLogFileRootDir(java.lang.String inLogFileRootDir)
           
 void setLoggerName(java.lang.String loggerName)
           
static void setUseAsynchronousLogging(boolean inUseAsynchronousLogging)
           
 void severe(java.lang.String msg)
          Log a message at the SEVERE level.
 void severe(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the SEVERE level with an accompanying message.
 void trace(java.lang.String msg)
          Log a message at the TRACE level.
 void trace(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the TRACE level with an accompanying message.
 void warn(java.lang.String msg)
          Log a message at the WARN level.
 void warn(java.lang.String msg, java.lang.Throwable t)
          Log an exception (throwable) at the WARN level with an accompanying message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppLoggerImpl

public AppLoggerImpl(java.lang.String loggerName)
Method Detail

debug

public void debug(java.lang.String msg)
Description copied from interface: Logger
Log a message at the DEBUG level.

Specified by:
debug in interface Logger
Parameters:
msg - the message string to be logged

debug

public void debug(java.lang.String msg,
                  java.lang.Throwable t)
Description copied from interface: Logger
Log an exception (throwable) at the DEBUG level with an accompanying message. This is same as FINEST level

Specified by:
debug in interface Logger
Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

error

public void error(java.lang.String msg)
Description copied from interface: Logger
Log a message at the ERROR level. This is same as SEVERE level

Specified by:
error in interface Logger
Parameters:
msg - the message string to be logged

error

public void error(java.lang.String msg,
                  java.lang.Throwable t)
Description copied from interface: Logger
Log an exception (throwable) at the ERROR level with an accompanying message.

Specified by:
error in interface Logger
Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

info

public void info(java.lang.String msg)
Description copied from interface: Logger
Log a message at the INFO level.

Specified by:
info in interface Logger
Parameters:
msg - the message string to be logged

info

public void info(java.lang.String msg,
                 java.lang.Throwable t)
Description copied from interface: Logger
Log an exception (throwable) at the INFO level with an accompanying message.

Specified by:
info in interface Logger
Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

trace

public void trace(java.lang.String msg)
Description copied from interface: Logger
Log a message at the TRACE level.

Specified by:
trace in interface Logger

trace

public void trace(java.lang.String msg,
                  java.lang.Throwable t)
Description copied from interface: Logger
Log an exception (throwable) at the TRACE level with an accompanying message.

Specified by:
trace in interface Logger
Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

warn

public void warn(java.lang.String msg)
Description copied from interface: Logger
Log a message at the WARN level.

Specified by:
warn in interface Logger
Parameters:
msg - the message string to be logged

warn

public void warn(java.lang.String msg,
                 java.lang.Throwable t)
Description copied from interface: Logger
Log an exception (throwable) at the WARN level with an accompanying message.

Specified by:
warn in interface Logger
Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

getLoggerName

public java.lang.String getLoggerName()

setLoggerName

public void setLoggerName(java.lang.String loggerName)
Specified by:
setLoggerName in interface Logger

setLevel

public void setLevel(java.util.logging.Level level)
Specified by:
setLevel in interface Logger

getLogFileRootDir

public static java.lang.String getLogFileRootDir()

getLogRootDirForThisJVM

public static java.lang.String getLogRootDirForThisJVM()

setLogFileRootDir

public static void setLogFileRootDir(java.lang.String inLogFileRootDir)

getLogFileNumToKeep

public static int getLogFileNumToKeep()

setLogFileNumToKeep

public static void setLogFileNumToKeep(int inLogFileNumToKeep)

getLogFileName

public static java.lang.String getLogFileName()

setLogFileName

public static void setLogFileName(java.lang.String inLogFileName)

getLogFileMaxSize

public static int getLogFileMaxSize()

setLogFileMaxSize

public static void setLogFileMaxSize(int inLogFileMaxSize)

getLogFileInitialLevel

public static java.lang.String getLogFileInitialLevel()

setLogFileInitialLevel

public static void setLogFileInitialLevel(java.lang.String logFileInitialLevel)

getLogDestination

public static java.lang.String getLogDestination()

setLogDestination

public static void setLogDestination(java.lang.String logDestination)

fine

public void fine(java.lang.String msg)
Description copied from interface: Logger
Log a message at the fine level. This is same as level trace

Specified by:
fine in interface Logger

fine

public void fine(java.lang.String msg,
                 java.lang.Throwable t)
Description copied from interface: Logger
Log an exception (throwable) at the fine level with an accompanying message. This is same as level trace

Specified by:
fine in interface Logger
Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

finest

public void finest(java.lang.String msg)
Description copied from interface: Logger
Log a message at the finest level. This is same as level DEBUG

Specified by:
finest in interface Logger
Parameters:
msg - the message string to be logged

finest

public void finest(java.lang.String msg,
                   java.lang.Throwable t)
Description copied from interface: Logger
Log an exception (throwable) at the FINEST level with an accompanying message. This is same as DEBUG level

Specified by:
finest in interface Logger
Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

severe

public void severe(java.lang.String msg)
Description copied from interface: Logger
Log a message at the SEVERE level. This is same as ERROR level

Specified by:
severe in interface Logger
Parameters:
msg - the message string to be logged

severe

public void severe(java.lang.String msg,
                   java.lang.Throwable t)
Description copied from interface: Logger
Log an exception (throwable) at the SEVERE level with an accompanying message. This same as ERROR level

Specified by:
severe in interface Logger
Parameters:
msg - the message accompanying the exception
t - the exception (throwable) to log

isUseAsynchronousLogging

public static boolean isUseAsynchronousLogging()

setUseAsynchronousLogging

public static void setUseAsynchronousLogging(boolean inUseAsynchronousLogging)