org.defne.utility.log
Interface ILogger

All Known Implementing Classes:
JDKLogger

public interface ILogger

Generic contract for logging.

Lots of framework uses complicated logging or logging framework. Wee think that logging must be easy therefore we use current JDK Logger and logs exceptions over it.

If you would like to use any other logging framework, set system property then we use it.

Version:
$Rev$ $Date$
Author:
gurkanerdogdu

Field Summary
static String LOGGING_SYSTEM_PROPERTY
          System property for logging usage.
 
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)
           
 

Field Detail

LOGGING_SYSTEM_PROPERTY

static final String LOGGING_SYSTEM_PROPERTY
System property for logging usage.

See Also:
Constant Field Values
Method Detail

isFatalEnabled

boolean isFatalEnabled()

isErrorEnabled

boolean isErrorEnabled()

isWarnEnabled

boolean isWarnEnabled()

isInfoEnabled

boolean isInfoEnabled()

isDebugEnabled

boolean isDebugEnabled()

isTraceEnabled

boolean isTraceEnabled()

fatal

void fatal(String message)

fatal

void fatal(String message,
           Throwable error)

fatal

void fatal(Throwable error)

error

void error(String message)

error

void error(Throwable error)

error

void error(String message,
           Throwable error)

warn

void warn(String message)

warn

void warn(String message,
          Throwable error)

warn

void warn(Throwable error)

info

void info(String message)

info

void info(String message,
          Throwable error)

info

void info(Throwable error)

debug

void debug(String message)

debug

void debug(String message,
           Throwable error)

debug

void debug(Throwable error)

trace

void trace(String message)

trace

void trace(String message,
           Throwable error)

trace

void trace(Throwable error)


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