Arch4J 1.1

org.arch4j.logging.log4j
Class Log4JLoggingCategory

java.lang.Object
  |
  +--org.arch4j.logging.log4j.Log4JLoggingCategory
All Implemented Interfaces:
LoggingCategory

public class Log4JLoggingCategory
extends Object
implements LoggingCategory

This class wraps the categorization of log messages within the log4j logging facility.

Version:
1.0
Author:
Ross E. Greinke

Constructor Summary
Log4JLoggingCategory(String name)
          Creates a new Log4JLoggingCategory instance, defining a logging category for the given name.
 
Method Summary
 void debug(Object message)
          Log an object with debug priority.
 void debug(String message)
          Log a message with debug priority.
 void debug(String message, Throwable thrown)
          Log a message with debug priority.
 void error(Object message)
          Log an object with the error priority.
 void error(String message)
          Log a message with the error priority.
 void error(String message, Throwable thrown)
          Log a message with the error priority.
 String getName()
          Return the logging category name.
 void info(Object message)
          Log an object with info priority.
 void info(String message)
          Log a message with info priority.
 void info(String message, Throwable thrown)
          Log a message with info priority.
 void warning(Object message)
          Log an object with the warning priority.
 void warning(String message)
          Log a message with the warning priority.
 void warning(String message, Throwable thrown)
          Log a message with the warning priority.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4JLoggingCategory

public Log4JLoggingCategory(String name)
Creates a new Log4JLoggingCategory instance, defining a logging category for the given name.

Parameters:
name - The name of the logging category.
Method Detail

debug

public void debug(Object message)
Description copied from interface: LoggingCategory
Log an object with debug priority.

Specified by:
debug in interface LoggingCategory

debug

public void debug(String message)
Description copied from interface: LoggingCategory
Log a message with debug priority.

Specified by:
debug in interface LoggingCategory

debug

public void debug(String message,
                  Throwable thrown)
Description copied from interface: LoggingCategory
Log a message with debug priority.

Specified by:
debug in interface LoggingCategory

error

public void error(Object message)
Description copied from interface: LoggingCategory
Log an object with the error priority.

Specified by:
error in interface LoggingCategory

error

public void error(String message)
Description copied from interface: LoggingCategory
Log a message with the error priority.

Specified by:
error in interface LoggingCategory

error

public void error(String message,
                  Throwable thrown)
Description copied from interface: LoggingCategory
Log a message with the error priority.

Specified by:
error in interface LoggingCategory

info

public void info(Object message)
Description copied from interface: LoggingCategory
Log an object with info priority.

Specified by:
info in interface LoggingCategory

info

public void info(String message)
Description copied from interface: LoggingCategory
Log a message with info priority.

Specified by:
info in interface LoggingCategory

info

public void info(String message,
                 Throwable thrown)
Description copied from interface: LoggingCategory
Log a message with info priority.

Specified by:
info in interface LoggingCategory

warning

public void warning(Object message)
Description copied from interface: LoggingCategory
Log an object with the warning priority.

Specified by:
warning in interface LoggingCategory

warning

public void warning(String message)
Description copied from interface: LoggingCategory
Log a message with the warning priority.

Specified by:
warning in interface LoggingCategory

warning

public void warning(String message,
                    Throwable thrown)
Description copied from interface: LoggingCategory
Log a message with the warning priority.

Specified by:
warning in interface LoggingCategory

getName

public String getName()
Description copied from interface: LoggingCategory
Return the logging category name.

Specified by:
getName in interface LoggingCategory

Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.