SmartFrog 3.10.000

org.smartfrog.sfcore.logging
Interface Log

All Known Subinterfaces:
LogSF
All Known Implementing Classes:
LogImpl, LogImplAsyncWrapper, LogToFileImpl, LogToNothingImpl, LogToPrimImpl, LogToStreamsImpl, SFPrimLogImpl

public interface Log

A simple logging interface abstracting logging APIs based in Apache Jakarta logging.


Method Summary
 void debug(java.lang.Object message)
           Log a message with debug log level.
 void debug(java.lang.Object message, java.lang.Throwable t)
           Log an error with debug log level.
 void error(java.lang.Object message)
           Log a message with error log level.
 void error(java.lang.Object message, java.lang.Throwable t)
           Log an error with error log level.
 void fatal(java.lang.Object message)
           Log a message with fatal log level.
 void fatal(java.lang.Object message, java.lang.Throwable t)
           Log an error with fatal log level.
 void info(java.lang.Object message)
           Log a message with info log level.
 void info(java.lang.Object message, java.lang.Throwable t)
           Log an error with info log level.
 boolean isDebugEnabled()
           Is debug logging currently enabled?
 boolean isErrorEnabled()
           Is error logging currently enabled?
 boolean isFatalEnabled()
           Is fatal logging currently enabled?
 boolean isInfoEnabled()
           Is info logging currently enabled?
 boolean isTraceEnabled()
           Is trace logging currently enabled?
 boolean isWarnEnabled()
           Is warning logging currently enabled?
 void trace(java.lang.Object message)
           Log a message with trace log level.
 void trace(java.lang.Object message, java.lang.Throwable t)
           Log an error with trace log level.
 void warn(java.lang.Object message)
           Log a message with warn log level.
 void warn(java.lang.Object message, java.lang.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:
boolean true if debug logging currently enabled

isErrorEnabled

boolean isErrorEnabled()

Is error logging currently enabled?

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

Returns:
boolean true if error logging currently enabled

isFatalEnabled

boolean isFatalEnabled()

Is fatal logging currently enabled?

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


isInfoEnabled

boolean isInfoEnabled()

Is info logging currently enabled?

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

Returns:
boolean true if info logging currently enabled

isTraceEnabled

boolean isTraceEnabled()

Is trace logging currently enabled?

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

Returns:
boolean true if trace logging currently enabled

isWarnEnabled

boolean isWarnEnabled()

Is warning logging currently enabled?

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

Returns:
boolean true if warn logging currently enabled

trace

void trace(java.lang.Object message)

Log a message with trace log level.

Parameters:
message - log this message

trace

void trace(java.lang.Object message,
           java.lang.Throwable t)

Log an error with trace log level.

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

debug

void debug(java.lang.Object message)

Log a message with debug log level.

Parameters:
message - log this message

debug

void debug(java.lang.Object message,
           java.lang.Throwable t)

Log an error with debug log level.

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

info

void info(java.lang.Object message)

Log a message with info log level.

Parameters:
message - log this message

info

void info(java.lang.Object message,
          java.lang.Throwable t)

Log an error with info log level.

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

warn

void warn(java.lang.Object message)

Log a message with warn log level.

Parameters:
message - log this message

warn

void warn(java.lang.Object message,
          java.lang.Throwable t)

Log an error with warn log level.

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

error

void error(java.lang.Object message)

Log a message with error log level.

Parameters:
message - log this message

error

void error(java.lang.Object message,
           java.lang.Throwable t)

Log an error with error log level.

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

fatal

void fatal(java.lang.Object message)

Log a message with fatal log level.

Parameters:
message - log this message

fatal

void fatal(java.lang.Object message,
           java.lang.Throwable t)

Log an error with fatal log level.

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

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP