public class

Jdk13LumberjackLogger

extends Object
implements Serializable Log
java.lang.Object
   ↳ org.apache.commons.logging.impl.Jdk13LumberjackLogger

Class Overview

Implementation of the org.apache.commons.logging.Log interface that wraps the standard JDK logging mechanisms that are available in SourceForge's Lumberjack for JDKs prior to 1.4.

Summary

Fields
protected static final Level dummyLevel This member variable simply ensures that any attempt to initialise this class in a pre-1.4 JVM will result in an ExceptionInInitializerError.
protected Logger logger The underlying Logger implementation we are using.
protected String name
Public Constructors
Jdk13LumberjackLogger(String name)
Construct a named instance of this Logger.
Public Methods
void debug(Object message, Throwable exception)
Logs a message with java.util.logging.Level.FINE.
void debug(Object message)
Logs a message with java.util.logging.Level.FINE.
void error(Object message)
Logs a message with java.util.logging.Level.SEVERE.
void error(Object message, Throwable exception)
Logs a message with java.util.logging.Level.SEVERE.
void fatal(Object message)
Logs a message with java.util.logging.Level.SEVERE.
void fatal(Object message, Throwable exception)
Logs a message with java.util.logging.Level.SEVERE.
Logger getLogger()
Return the native Logger instance we are using.
void info(Object message)
Logs a message with java.util.logging.Level.INFO.
void info(Object message, Throwable exception)
Logs a message with java.util.logging.Level.INFO.
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 trace(Object message)
Logs a message with java.util.logging.Level.FINEST.
void trace(Object message, Throwable exception)
Logs a message with java.util.logging.Level.FINEST.
void warn(Object message, Throwable exception)
Logs a message with java.util.logging.Level.WARNING.
void warn(Object message)
Logs a message with java.util.logging.Level.WARNING.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.apache.commons.logging.Log

Fields

protected static final Level dummyLevel

This member variable simply ensures that any attempt to initialise this class in a pre-1.4 JVM will result in an ExceptionInInitializerError. It must not be private, as an optimising compiler could detect that it is not used and optimise it away.

protected Logger logger

The underlying Logger implementation we are using.

protected String name

Public Constructors

public Jdk13LumberjackLogger (String name)

Construct a named instance of this Logger.

Parameters
name Name of the logger to be constructed

Public Methods

public void debug (Object message, Throwable exception)

Logs a message with java.util.logging.Level.FINE.

Parameters
message to log
exception log this cause

public void debug (Object message)

Logs a message with java.util.logging.Level.FINE.

Parameters
message to log
See Also

public void error (Object message)

Logs a message with java.util.logging.Level.SEVERE.

Parameters
message to log
See Also

public void error (Object message, Throwable exception)

Logs a message with java.util.logging.Level.SEVERE.

Parameters
message to log
exception log this cause

public void fatal (Object message)

Logs a message with java.util.logging.Level.SEVERE.

Parameters
message to log
See Also

public void fatal (Object message, Throwable exception)

Logs a message with java.util.logging.Level.SEVERE.

Parameters
message to log
exception log this cause

public Logger getLogger ()

Return the native Logger instance we are using.

public void info (Object message)

Logs a message with java.util.logging.Level.INFO.

Parameters
message to log
See Also

public void info (Object message, Throwable exception)

Logs a message with java.util.logging.Level.INFO.

Parameters
message to log
exception log this cause

public boolean isDebugEnabled ()

Is debug logging currently enabled?

Returns
  • true if debug is enabled in the underlying logger.

public boolean isErrorEnabled ()

Is error logging currently enabled?

Returns
  • true if error is enabled in the underlying logger.

public boolean isFatalEnabled ()

Is fatal logging currently enabled?

Returns
  • true if fatal is enabled in the underlying logger.

public boolean isInfoEnabled ()

Is info logging currently enabled?

Returns
  • true if info is enabled in the underlying logger.

public boolean isTraceEnabled ()

Is trace logging currently enabled?

Returns
  • true if trace is enabled in the underlying logger.

public boolean isWarnEnabled ()

Is warn logging currently enabled?

Returns
  • true if warn is enabled in the underlying logger.

public void trace (Object message)

Logs a message with java.util.logging.Level.FINEST.

Parameters
message to log
See Also

public void trace (Object message, Throwable exception)

Logs a message with java.util.logging.Level.FINEST.

Parameters
message to log
exception log this cause

public void warn (Object message, Throwable exception)

Logs a message with java.util.logging.Level.WARNING.

Parameters
message to log
exception log this cause

public void warn (Object message)

Logs a message with java.util.logging.Level.WARNING.

Parameters
message to log
See Also