Kieker 1.9

kieker.common.logging
Interface Log

All Known Implementing Classes:
LogImplCommonsLogging, LogImplJDK14, LogImplJUnit, LogImplNone, LogImplSLF4JLogging, LogImplWebguiLogging

public interface Log

A simple logging interface abstracting logging APIs.

The four logging levels used by Log are (in order):

  1. debug (the least serious)
  2. info
  3. warn
  4. error (the most serious)

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.
 

Method Detail

isDebugEnabled

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.

Returns:
true if debug is enabled in the underlying logger.
Since:
1.5

debug

void debug(String message)

Log a message with debug log level.

Parameters:
message - log this message
Since:
1.5

debug

void debug(String message,
           Throwable t)

Log an error with debug log level.

Parameters:
message - log this message
t - log this cause
Since:
1.5

info

void info(String message)

Log a message with info log level.

Parameters:
message - log this message
Since:
1.5

info

void info(String message,
          Throwable t)

Log an error with info log level.

Parameters:
message - log this message
t - log this cause
Since:
1.5

warn

void warn(String message)

Log a message with warn log level.

Parameters:
message - log this message
Since:
1.5

warn

void warn(String message,
          Throwable t)

Log an error with warn log level.

Parameters:
message - log this message
t - log this cause
Since:
1.5

error

void error(String message)

Log a message with error log level.

Parameters:
message - log this message
Since:
1.5

error

void error(String message,
           Throwable t)

Log an error with error log level.

Parameters:
message - log this message
t - log this cause
Since:
1.5

Kieker 1.9

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