com.openpojo.log.impl
Class JavaLogger

Package class diagram package JavaLogger
java.lang.Object
  extended by com.openpojo.log.Logger
      extended by com.openpojo.log.impl.JavaLogger

public final class JavaLogger
extends Logger

Our own JavaLogger adapter.
The Mapping is done as follows:
- Trace = Level.FINEST
- Debug = Level.FINER
- Info = Level.FINE
- Warn = Level.WARNING
- Error = Level.SEVERE
- Fatal = Level.SEVERE


Method Summary
 void debug(java.lang.Object message)
          Logs the object's toString() with debug priority.
 void error(java.lang.Object message)
          Logs the object's toString() with error priority.
 void fatal(java.lang.Object message)
          Logs the object's toString() with fatal priority.
 void info(java.lang.Object message)
          Logs the object's toString() with info priority.
 boolean isDebugEnabled()
          Returns true if the underlying log API's debug is enabled.
 boolean isErrorEnabled()
          Returns true if the underlying log API's error is enabled.
 boolean isFatalEnabled()
          Returns true if the underlying log API's fatal is enabled.
 boolean isInfoEnabled()
          Returns true if the underlying log API's info is enabled.
 boolean isTraceEnabled()
          Returns true if the underlying log API's trace is enabled.
 boolean isWarnEnabled()
          Returns true if the underlying log API's warn is enabled.
 java.lang.String toString()
           
 void trace(java.lang.Object message)
          Logs the object's toString() with trace priority.
 void warn(java.lang.Object message)
          Logs the object's toString() with warn priority.
 
Methods inherited from class com.openpojo.log.Logger
debug, error, fatal, format, info, trace, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

isTraceEnabled

public boolean isTraceEnabled()
Description copied from class: Logger
Returns true if the underlying log API's trace is enabled.

Specified by:
isTraceEnabled in class Logger
Returns:
returns true if trace is enabled.

isDebugEnabled

public boolean isDebugEnabled()
Description copied from class: Logger
Returns true if the underlying log API's debug is enabled.

Specified by:
isDebugEnabled in class Logger
Returns:
returns true if debug is enabled.

isInfoEnabled

public boolean isInfoEnabled()
Description copied from class: Logger
Returns true if the underlying log API's info is enabled.

Specified by:
isInfoEnabled in class Logger
Returns:
returns true if info is enabled.

isWarnEnabled

public boolean isWarnEnabled()
Description copied from class: Logger
Returns true if the underlying log API's warn is enabled.

Specified by:
isWarnEnabled in class Logger
Returns:
returns true if warn is enabled.

isErrorEnabled

public boolean isErrorEnabled()
Description copied from class: Logger
Returns true if the underlying log API's error is enabled.

Specified by:
isErrorEnabled in class Logger
Returns:
returns true if error is enabled.

isFatalEnabled

public boolean isFatalEnabled()
Description copied from class: Logger
Returns true if the underlying log API's fatal is enabled.

Specified by:
isFatalEnabled in class Logger
Returns:
returns true if fatal is enabled.

trace

public void trace(java.lang.Object message)
Description copied from class: Logger
Logs the object's toString() with trace priority.

Specified by:
trace in class Logger
Parameters:
message - The object to log.

debug

public void debug(java.lang.Object message)
Description copied from class: Logger
Logs the object's toString() with debug priority.

Specified by:
debug in class Logger
Parameters:
message - The object to log.

info

public void info(java.lang.Object message)
Description copied from class: Logger
Logs the object's toString() with info priority.

Specified by:
info in class Logger
Parameters:
message - The object to log.

warn

public void warn(java.lang.Object message)
Description copied from class: Logger
Logs the object's toString() with warn priority.

Specified by:
warn in class Logger
Parameters:
message - The object to log.

error

public void error(java.lang.Object message)
Description copied from class: Logger
Logs the object's toString() with error priority.

Specified by:
error in class Logger
Parameters:
message - The object to log.

fatal

public void fatal(java.lang.Object message)
Description copied from class: Logger
Logs the object's toString() with fatal priority.

Specified by:
fatal in class Logger
Parameters:
message - The object to log.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010-2015. All Rights Reserved.