SmartFrog 3.10.000

org.smartfrog.sfcore.logging
Interface LogSF

All Superinterfaces:
Log, LogLevel, LogMessage
All Known Implementing Classes:
LogImpl, LogImplAsyncWrapper

public interface LogSF
extends Log, LogMessage, LogLevel

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


Field Summary
static java.lang.String ATR_LOG_LEVEL
          String name for optional attribute "debug".
static java.lang.String ATR_LOGGER_CLASS
          String name for optional attribute "debug".
 
Fields inherited from interface org.smartfrog.sfcore.logging.LogLevel
LOG_LEVEL_ALL, LOG_LEVEL_DEBUG, LOG_LEVEL_ERROR, LOG_LEVEL_FATAL, LOG_LEVEL_IGNORE, LOG_LEVEL_INFO, LOG_LEVEL_OFF, LOG_LEVEL_TRACE, LOG_LEVEL_WARN
 
Method Summary
 void debug(java.lang.Object message, SmartFrogException t)
           Log an error with debug log level.
 void debug(java.lang.Object message, SmartFrogException t, TerminationRecord tr)
           Log a message with debug log level.
 void error(java.lang.Object message, SmartFrogException t)
           Log an error with error log level.
 void error(java.lang.Object message, SmartFrogException t, TerminationRecord tr)
           Log a message with error log level.
 void fatal(java.lang.Object message, SmartFrogException t)
           Log an error with fatal log level.
 void fatal(java.lang.Object message, SmartFrogException t, TerminationRecord tr)
           Log a message with fatal log level.
 int getLevel()
          Get logging level.
 java.lang.String getLogName()
          Get log name.
 void ignore(java.lang.Object message)
           Log a message with ignore log level.
 void ignore(java.lang.Object message, SmartFrogException t)
           Log an error with ignore log level.
 void ignore(java.lang.Object message, SmartFrogException t, TerminationRecord tr)
           Log a message with ignore log level.
 void ignore(java.lang.Object message, java.lang.Throwable t)
           Log an error with ignore log level.
 void info(java.lang.Object message, SmartFrogException t)
           Log an error with info log level.
 void info(java.lang.Object message, SmartFrogException t, TerminationRecord tr)
           Log a message with info log level.
 boolean isIgnoreEnabled()
           Is ignore logging currently enabled?
 void setLevel(int currentLogLevel)
           Set logging level.
 void trace(java.lang.Object message, SmartFrogException t)
           Log an error with trace log level.
 void trace(java.lang.Object message, SmartFrogException t, TerminationRecord tr)
           Log a message with trace log level.
 void warn(java.lang.Object message, SmartFrogException t)
           Log an error with warn log level.
 void warn(java.lang.Object message, SmartFrogException t, TerminationRecord tr)
           Log a message with warn log level.
 
Methods inherited from interface org.smartfrog.sfcore.logging.Log
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, warn, warn
 
Methods inherited from interface org.smartfrog.sfcore.logging.LogMessage
err, err, err, err, out
 
Methods inherited from interface org.smartfrog.sfcore.logging.LogLevel
isLevelEnabled
 

Field Detail

ATR_LOG_LEVEL

static final java.lang.String ATR_LOG_LEVEL
String name for optional attribute "debug".

See Also:
Constant Field Values

ATR_LOGGER_CLASS

static final java.lang.String ATR_LOGGER_CLASS
String name for optional attribute "debug".

See Also:
Constant Field Values
Method Detail

setLevel

void setLevel(int currentLogLevel)

Set logging level.

Specified by:
setLevel in interface LogLevel
Parameters:
currentLogLevel - new logging level

getLevel

int getLevel()
Get logging level.

Specified by:
getLevel in interface LogLevel
Returns:
the logging level

getLogName

java.lang.String getLogName()
Get log name.

Returns:
the log name

isIgnoreEnabled

boolean isIgnoreEnabled()

Is ignore logging currently enabled?

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

Returns:
boolean true if ignore level is currently enabled

ignore

void ignore(java.lang.Object message)

Log a message with ignore log level.

Parameters:
message - log this message

ignore

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

Log an error with ignore log level.

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

ignore

void ignore(java.lang.Object message,
            SmartFrogException t,
            TerminationRecord tr)

Log a message with ignore log level.

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

ignore

void ignore(java.lang.Object message,
            SmartFrogException t)

Log an error with ignore log level.

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

trace

void trace(java.lang.Object message,
           SmartFrogException t,
           TerminationRecord tr)

Log a message with trace log level.

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

trace

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

Log an error with trace log level.

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

debug

void debug(java.lang.Object message,
           SmartFrogException t,
           TerminationRecord tr)

Log a message with debug log level.

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

debug

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

Log an error with debug log level.

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

info

void info(java.lang.Object message,
          SmartFrogException t,
          TerminationRecord tr)

Log a message with info log level.

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

info

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

Log an error with info log level.

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

warn

void warn(java.lang.Object message,
          SmartFrogException t,
          TerminationRecord tr)

Log a message with warn log level.

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

warn

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

Log an error with warn log level.

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

error

void error(java.lang.Object message,
           SmartFrogException t,
           TerminationRecord tr)

Log a message with error log level.

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

error

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

Log an error with error log level.

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

fatal

void fatal(java.lang.Object message,
           SmartFrogException t,
           TerminationRecord tr)

Log a message with fatal log level.

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

fatal

void fatal(java.lang.Object message,
           SmartFrogException 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