org.jmonit.log
Class Java14Logger

java.lang.Object
  extended by org.jmonit.log.Log
      extended by org.jmonit.log.Java14Logger

public class Java14Logger
extends Log

Logger implementation based on Java 1.4+ logging API.

Author:
Nicolas De Loof

Constructor Summary
Java14Logger(java.lang.Class target)
          Constructor
 
Method Summary
 void debug(java.lang.String message)
          
 void error(java.lang.String message)
          
 void error(java.lang.String message, java.lang.Throwable t)
          
 void info(java.lang.String message)
          
 void info(java.lang.String message, java.lang.Throwable t)
          
 boolean isDebugEnabled()
          
 void warn(java.lang.String message)
          
 void warn(java.lang.String message, java.lang.Throwable t)
          
 
Methods inherited from class org.jmonit.log.Log
getLog
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Java14Logger

public Java14Logger(java.lang.Class target)
Constructor

Parameters:
target - logging class
Method Detail

debug

public void debug(java.lang.String message)

Specified by:
debug in class Log
Parameters:
message - message to be logged
See Also:
info.jmonit.logger.Log#debug(java.lang.String)

info

public void info(java.lang.String message)

Specified by:
info in class Log
Parameters:
message - message to be logged
See Also:
info.jmonit.logger.Log#info(java.lang.String)

info

public void info(java.lang.String message,
                 java.lang.Throwable t)

Specified by:
info in class Log
Parameters:
message - message to be logged
t - Exception to be logged
See Also:
info.jmonit.logger.Log#info(java.lang.String, Throwable)

error

public void error(java.lang.String message)

Specified by:
error in class Log
Parameters:
message - message to be logged
See Also:
info.jmonit.logger.Log#error(java.lang.String)

error

public void error(java.lang.String message,
                  java.lang.Throwable t)

Specified by:
error in class Log
Parameters:
message - message to be logged
t - Exception to be logged
See Also:
info.jmonit.logger.Log#error(java.lang.String, Throwable)

isDebugEnabled

public boolean isDebugEnabled()

Specified by:
isDebugEnabled in class Log
Returns:
true if debug logs are enabled
See Also:
info.jmonit.logger.Log#isDebugEnabled()

warn

public void warn(java.lang.String message)

Specified by:
warn in class Log
Parameters:
message - message to be logged
See Also:
info.jmonit.logger.Log#warn(java.lang.String)

warn

public void warn(java.lang.String message,
                 java.lang.Throwable t)

Specified by:
warn in class Log
Parameters:
message - message to be logged
t - Exception to be logged
See Also:
info.jmonit.logger.Log#warn(java.lang.String, Throwable)


Copyright © 2007 Nicolas De Loof. All Rights Reserved.