de.betabeans.scroogexhtml.logging
Class DefaultLogger

java.lang.Object
  extended by de.betabeans.scroogexhtml.logging.Logger
      extended by de.betabeans.scroogexhtml.logging.DefaultLogger
All Implemented Interfaces:
Log

public final class DefaultLogger
extends Logger

A simple logger implementation.

Author:
Michael Justin

Constructor Summary
DefaultLogger()
           
 
Method Summary
 void debug(java.lang.Object message)
          Send a DEBUG string to the log.
 void error(java.lang.Object message)
          Send a LOG_ERROR string to the log.
 void fatal(java.lang.Object message)
          Send a LOG_FATAL string to the log.
 void info(java.lang.Object message)
          Send a INFO string to the log.
 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 warn logging currently enabled?
 void warn(java.lang.Object message)
          Send a LOG_WARN string to the log.
 
Methods inherited from class de.betabeans.scroogexhtml.logging.Logger
addLogListener, debug, error, fatal, getLogger, getLogLevel, getLogListeners, getLogListenerVector, info, removeLogListener, setLogger, setLogLevel, trace, trace, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLogger

public DefaultLogger()
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
Overrides:
isDebugEnabled in class Logger
Returns:
boolean

isErrorEnabled

public 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.

Specified by:
isErrorEnabled in interface Log
Overrides:
isErrorEnabled in class Logger
Returns:
boolean

isFatalEnabled

public 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.

Specified by:
isFatalEnabled in interface Log
Overrides:
isFatalEnabled in class Logger
Returns:
boolean

isInfoEnabled

public 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.

Specified by:
isInfoEnabled in interface Log
Overrides:
isInfoEnabled in class Logger
Returns:
boolean

isTraceEnabled

public 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.

Specified by:
isTraceEnabled in interface Log
Overrides:
isTraceEnabled in class Logger
Returns:
boolean

isWarnEnabled

public boolean isWarnEnabled()

Is warn 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.

Specified by:
isWarnEnabled in interface Log
Overrides:
isWarnEnabled in class Logger
Returns:
boolean

debug

public void debug(java.lang.Object message)
Send a DEBUG string to the log.

Specified by:
debug in interface Log
Overrides:
debug in class Logger
Parameters:
message - The message to be logged.

info

public void info(java.lang.Object message)
Send a INFO string to the log.

Specified by:
info in interface Log
Overrides:
info in class Logger
Parameters:
message - The message to be logged.

warn

public void warn(java.lang.Object message)
Send a LOG_WARN string to the log.

Specified by:
warn in interface Log
Overrides:
warn in class Logger
Parameters:
message - The message to be logged.

error

public void error(java.lang.Object message)
Send a LOG_ERROR string to the log.

Specified by:
error in interface Log
Overrides:
error in class Logger
Parameters:
message - The message to be logged.

fatal

public void fatal(java.lang.Object message)
Send a LOG_FATAL string to the log.

Specified by:
fatal in interface Log
Overrides:
fatal in class Logger
Parameters:
message - The message to be logged.


Copyright (c) 1998-2006 BetaSoft Michael Justin. All Rights Reserved.