org.defne.utility.log
Class JDKLogger

java.lang.Object
  extended by org.defne.utility.log.JDKLogger
All Implemented Interfaces:
ILogger

public class JDKLogger
extends Object
implements ILogger

Implementation of the ILogger using the platform JDK logging.

Version:
$Rev$ $Date$

Field Summary
 
Fields inherited from interface org.defne.utility.log.ILogger
LOGGING_SYSTEM_PROPERTY
 
Constructor Summary
JDKLogger(Class<?> clazz)
          Private Constructor.
 
Method Summary
 void debug(String message)
          
 void debug(String message, Throwable error)
          
 void debug(Throwable error)
          
 void error(String message)
          
 void error(String message, Throwable error)
          
 void error(Throwable error)
          
 void fatal(String message)
          
 void fatal(String message, Throwable error)
          
 void fatal(Throwable error)
          
 void info(String message)
          
 void info(String message, Throwable error)
          
 void info(Throwable error)
          
 boolean isDebugEnabled()
          
 boolean isErrorEnabled()
          
 boolean isFatalEnabled()
          
 boolean isInfoEnabled()
          
 boolean isTraceEnabled()
          
 boolean isWarnEnabled()
          
 void trace(String message)
          
 void trace(String message, Throwable error)
          
 void trace(Throwable error)
          
 void warn(String message)
          
 void warn(String message, Throwable error)
          
 void warn(Throwable error)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDKLogger

public JDKLogger(Class<?> clazz)
Private Constructor.

Parameters:
clazz - owner class of the logger
Method Detail

debug

public void debug(String message)

Specified by:
debug in interface ILogger

debug

public void debug(String message,
                  Throwable error)

Specified by:
debug in interface ILogger

error

public void error(String message)

Specified by:
error in interface ILogger

error

public void error(String message,
                  Throwable error)

Specified by:
error in interface ILogger

fatal

public void fatal(String message)

Specified by:
fatal in interface ILogger

fatal

public void fatal(String message,
                  Throwable error)

Specified by:
fatal in interface ILogger

info

public void info(String message)

Specified by:
info in interface ILogger

info

public void info(String message,
                 Throwable error)

Specified by:
info in interface ILogger

isDebugEnabled

public boolean isDebugEnabled()

Specified by:
isDebugEnabled in interface ILogger

isErrorEnabled

public boolean isErrorEnabled()

Specified by:
isErrorEnabled in interface ILogger

isFatalEnabled

public boolean isFatalEnabled()

Specified by:
isFatalEnabled in interface ILogger

isInfoEnabled

public boolean isInfoEnabled()

Specified by:
isInfoEnabled in interface ILogger

isTraceEnabled

public boolean isTraceEnabled()

Specified by:
isTraceEnabled in interface ILogger

isWarnEnabled

public boolean isWarnEnabled()

Specified by:
isWarnEnabled in interface ILogger

trace

public void trace(String message)

Specified by:
trace in interface ILogger

trace

public void trace(String message,
                  Throwable error)

Specified by:
trace in interface ILogger

warn

public void warn(String message)

Specified by:
warn in interface ILogger

warn

public void warn(String message,
                 Throwable error)

Specified by:
warn in interface ILogger

error

public void error(Throwable error)

Specified by:
error in interface ILogger

debug

public void debug(Throwable error)

Specified by:
debug in interface ILogger

fatal

public void fatal(Throwable error)

Specified by:
fatal in interface ILogger

info

public void info(Throwable error)

Specified by:
info in interface ILogger

trace

public void trace(Throwable error)

Specified by:
trace in interface ILogger

warn

public void warn(Throwable error)

Specified by:
warn in interface ILogger


Copyright © 2010 MechSoft Mechanical and Software Solutions. All Rights Reserved.