Kieker 1.9

kieker.common.logging
Class LogImplCommonsLogging

java.lang.Object
  extended by kieker.common.logging.LogImplCommonsLogging
All Implemented Interfaces:
Log

public final class LogImplCommonsLogging
extends Object
implements Log

This is an actual implementation of the logging interface used by the common logger of the JVM.

Since:
1.5
Author:
Jan Waller

Method Summary
 void debug(String message)
          

Log a message with debug log level.

 void debug(String message, Throwable t)
          

Log an error with debug log level.

 void error(String message)
          

Log a message with error log level.

 void error(String message, Throwable t)
          

Log an error with error log level.

 void info(String message)
          

Log a message with info log level.

 void info(String message, Throwable t)
          

Log an error with info log level.

 boolean isDebugEnabled()
          

Is debug logging currently enabled?

 void warn(String message)
          

Log a message with warn log level.

 void warn(String message, Throwable t)
          

Log an error with warn log level.

 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isDebugEnabled

public boolean isDebugEnabled()

Is debug logging currently enabled?

Call this method to prevent having to perform expensive operations (for example, String concatenation) when the log level is more than debug.

Specified by:
isDebugEnabled in interface Log
Returns:
true if debug is enabled in the underlying logger.

debug

public void debug(String message)

Log a message with debug log level.

Specified by:
debug in interface Log
Parameters:
message - log this message

debug

public void debug(String message,
                  Throwable t)

Log an error with debug log level.

Specified by:
debug in interface Log
Parameters:
message - log this message
t - log this cause

info

public void info(String message)

Log a message with info log level.

Specified by:
info in interface Log
Parameters:
message - log this message

info

public void info(String message,
                 Throwable t)

Log an error with info log level.

Specified by:
info in interface Log
Parameters:
message - log this message
t - log this cause

warn

public void warn(String message)

Log a message with warn log level.

Specified by:
warn in interface Log
Parameters:
message - log this message

warn

public void warn(String message,
                 Throwable t)

Log an error with warn log level.

Specified by:
warn in interface Log
Parameters:
message - log this message
t - log this cause

error

public void error(String message)

Log a message with error log level.

Specified by:
error in interface Log
Parameters:
message - log this message

error

public void error(String message,
                  Throwable t)

Log an error with error log level.

Specified by:
error in interface Log
Parameters:
message - log this message
t - log this cause

Kieker 1.9

Copyright 2014 Kieker Project, http://kieker-monitoring.net