net.sourceforge.acelogger
Class EmptyLogger

java.lang.Object
  extended by net.sourceforge.acelogger.EmptyLogger
All Implemented Interfaces:
Identifiable, Logger

public final class EmptyLogger
extends Object
implements Logger

An implementation of Logger that does nothing.

Since:
1.0.0
Version:
1.0.0
Author:
Zardi (https://sourceforge.net/users/daniel_zardi)

Constructor Summary
EmptyLogger(String identifier)
          Constructs a EmptyLogger using the supplied identifier.
 
Method Summary
 void debug(String message, Object... params)
          Creates a debug level log message, the final message will depend on the underlying Formatter and parameters.
 void debug(String message, Throwable cause, Object... params)
          Creates a debug level log message, the final message will depend on the underlying Formatter and parameters.
 void error(String message, Object... params)
          Creates a error level log message, the final message will depend on the underlying Formatter and parameters.
 void error(String message, Throwable cause, Object... params)
          Creates a error level log message, the final message will depend on the underlying Formatter and parameters.
 void fatal(String message, Object... params)
          Creates a fatal level log message, the final message will depend on the underlying Formatter and parameters.
 void fatal(String message, Throwable cause, Object... params)
          Creates a fatal level log message, the final message will depend on the underlying Formatter and parameters.
 String getIdentifier()
          Gets a String that identifies this object.
 void info(String message, Object... params)
          Creates a information level log message, the final message will depend on the underlying Formatter.
 void info(String message, Throwable cause, Object... params)
          Creates a information level log message, the final message will depend on the underlying Formatter.
 boolean isDebugEnabled()
          Checks the suitability of the debug level for this Logger.
 boolean isErrorEnabled()
          Checks the suitability of the error level for this Logger.
 boolean isFatalEnabled()
          Checks the suitability of the fatal level for this Logger.
 boolean isInfoEnabled()
          Checks the suitability of the information level for this Logger.
 boolean isTraceEnabled()
          Checks the suitability of the tracing level for this Logger.
 boolean isWarnEnabled()
          Checks the suitability of the warning level for this Logger.
 void trace(String message, Object... params)
          Creates a tracing level log message, the final message will depend on the underlying Formatter.
 void trace(String message, Throwable cause, Object... params)
          Creates a tracing level log message, the final message will depend on the underlying Formatter.
 void warn(String message, Object... params)
          Creates a warning level log message, the final message will depend on the underlying Formatter.
 void warn(String message, Throwable cause, Object... params)
          Creates a warning level log message, the final message will depend on the underlying Formatter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyLogger

public EmptyLogger(String identifier)
Constructs a EmptyLogger using the supplied identifier.

Parameters:
identifier - The identifier of this logger.
Since:
1.0.0
Method Detail

getIdentifier

public String getIdentifier()
Gets a String that identifies this object.

Specified by:
getIdentifier in interface Identifiable
Returns:
The identifier of this object.

isDebugEnabled

public boolean isDebugEnabled()
Checks the suitability of the debug level for this Logger.

Specified by:
isDebugEnabled in interface Logger
Returns:
True if the debug level is suitable for this logger, false otherwise.

isErrorEnabled

public boolean isErrorEnabled()
Checks the suitability of the error level for this Logger.

Specified by:
isErrorEnabled in interface Logger
Returns:
True if the error level is suitable for this logger, false otherwise.

isFatalEnabled

public boolean isFatalEnabled()
Checks the suitability of the fatal level for this Logger.

Specified by:
isFatalEnabled in interface Logger
Returns:
True if the fatal level is suitable for this logger, false otherwise.

isInfoEnabled

public boolean isInfoEnabled()
Checks the suitability of the information level for this Logger.

Specified by:
isInfoEnabled in interface Logger
Returns:
True if the information level is suitable for this logger, false otherwise.

isTraceEnabled

public boolean isTraceEnabled()
Checks the suitability of the tracing level for this Logger.

Specified by:
isTraceEnabled in interface Logger
Returns:
True if the tracing level is suitable for this logger, false otherwise.

isWarnEnabled

public boolean isWarnEnabled()
Checks the suitability of the warning level for this Logger.

Specified by:
isWarnEnabled in interface Logger
Returns:
True if the warning level is suitable for this logger, false otherwise.

debug

public void debug(String message,
                  Object... params)
Creates a debug level log message, the final message will depend on the underlying Formatter and parameters.

Specified by:
debug in interface Logger
Parameters:
message - The message to be formatted and then logged.
params - The list of parameter used to format the message.

debug

public void debug(String message,
                  Throwable cause,
                  Object... params)
Creates a debug level log message, the final message will depend on the underlying Formatter and parameters.

Specified by:
debug in interface Logger
Parameters:
message - The message to be formatted and then logged.
cause - The Throwable that originated this log call.
params - The list of parameter used to format the message.

error

public void error(String message,
                  Object... params)
Creates a error level log message, the final message will depend on the underlying Formatter and parameters.

Specified by:
error in interface Logger
Parameters:
message - The message to be formatted and then logged.
params - The list of parameter used to format the message.

error

public void error(String message,
                  Throwable cause,
                  Object... params)
Creates a error level log message, the final message will depend on the underlying Formatter and parameters.

Specified by:
error in interface Logger
Parameters:
message - The message to be formatted and then logged.
cause - The Throwable that originated this log call.
params - The list of parameter used to format the message.

fatal

public void fatal(String message,
                  Object... params)
Creates a fatal level log message, the final message will depend on the underlying Formatter and parameters.

Specified by:
fatal in interface Logger
Parameters:
message - The message to be formatted and then logged.
params - The list of parameter used to format the message.

fatal

public void fatal(String message,
                  Throwable cause,
                  Object... params)
Creates a fatal level log message, the final message will depend on the underlying Formatter and parameters.

Specified by:
fatal in interface Logger
Parameters:
message - The message to be formatted and then logged.
cause - The Throwable that originated this log call.
params - The list of parameter used to format the message.

info

public void info(String message,
                 Object... params)
Creates a information level log message, the final message will depend on the underlying Formatter.

Specified by:
info in interface Logger
Parameters:
message - The message to be formatted and then logged.
params - The list of parameter used to format the message.

info

public void info(String message,
                 Throwable cause,
                 Object... params)
Creates a information level log message, the final message will depend on the underlying Formatter.

Specified by:
info in interface Logger
Parameters:
message - The message to be formatted and then logged.
cause - The Throwable that originated this log call.
params - The list of parameter used to format the message.

trace

public void trace(String message,
                  Object... params)
Creates a tracing level log message, the final message will depend on the underlying Formatter.

Specified by:
trace in interface Logger
Parameters:
message - The message to be formatted and then logged.
params - The list of parameter used to format the message.

trace

public void trace(String message,
                  Throwable cause,
                  Object... params)
Creates a tracing level log message, the final message will depend on the underlying Formatter.

Specified by:
trace in interface Logger
Parameters:
message - The message to be formatted and then logged.
cause - The Throwable that originated this log call.
params - The list of parameter used to format the message.

warn

public void warn(String message,
                 Object... params)
Creates a warning level log message, the final message will depend on the underlying Formatter.

Specified by:
warn in interface Logger
Parameters:
message - The message to be formatted and then logged.
params - The list of parameter used to format the message.

warn

public void warn(String message,
                 Throwable cause,
                 Object... params)
Creates a warning level log message, the final message will depend on the underlying Formatter.

Specified by:
warn in interface Logger
Parameters:
message - The message to be formatted and then logged.
cause - The Throwable that originated this log call.
params - The list of parameter used to format the message.


Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.