org.jomc.logging.ri.log4j
Class Log4JLogger

java.lang.Object
  extended by org.jomc.logging.ri.log4j.Log4JLogger
All Implemented Interfaces:
org.jomc.logging.Logger, org.jomc.spi.Listener

@Generated(value="org.jomc.tools.JavaSources",
           comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools")
public class Log4JLogger
extends Object
implements org.jomc.logging.Logger, org.jomc.spi.Listener

Log4J logging system implementation.

Specifications

Properties

Dependencies

Version:
$Id$
Author:
Christian Schulte 1.0

Constructor Summary
Log4JLogger()
          Creates a new Log4JLogger instance.
 
Method Summary
 void debug(String string)
           
 void debug(String message, Throwable throwable)
           
 void debug(Throwable throwable)
           
 void error(String string)
           
 void error(String message, Throwable throwable)
           
 void error(Throwable throwable)
           
 void fatal(String string)
           
 void fatal(String message, Throwable throwable)
           
 void fatal(Throwable throwable)
           
 org.apache.log4j.Logger getLogger()
          Requests a Log4J logger for the name given by property name.
 String getName()
          Gets the value of the name property.
 void info(String string)
           
 void info(String message, Throwable throwable)
           
 void info(Throwable throwable)
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isFatalEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 boolean isWarnEnabled()
           
 void onLog(Level level, String message, Throwable throwable)
           
 void trace(String string)
           
 void trace(String message, Throwable throwable)
           
 void trace(Throwable throwable)
           
 void warn(String string)
           
 void warn(String message, Throwable throwable)
           
 void warn(Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4JLogger

@Generated(value="org.jomc.tools.JavaSources",
           comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools")
public Log4JLogger()
Creates a new Log4JLogger instance.

Method Detail

getName

@Generated(value="org.jomc.tools.JavaSources",
           comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-16/jomc-tools")
public String getName()
Gets the value of the name property.

Returns:
Name of the component events are logged for.
Throws:
org.jomc.ObjectManagementException - if getting the property instance fails.

isDebugEnabled

public boolean isDebugEnabled()
Specified by:
isDebugEnabled in interface org.jomc.logging.Logger

debug

public void debug(String string)
Specified by:
debug in interface org.jomc.logging.Logger

debug

public void debug(Throwable throwable)
Specified by:
debug in interface org.jomc.logging.Logger

debug

public void debug(String message,
                  Throwable throwable)
Specified by:
debug in interface org.jomc.logging.Logger

isErrorEnabled

public boolean isErrorEnabled()
Specified by:
isErrorEnabled in interface org.jomc.logging.Logger

error

public void error(String string)
Specified by:
error in interface org.jomc.logging.Logger

error

public void error(Throwable throwable)
Specified by:
error in interface org.jomc.logging.Logger

error

public void error(String message,
                  Throwable throwable)
Specified by:
error in interface org.jomc.logging.Logger

isFatalEnabled

public boolean isFatalEnabled()
Specified by:
isFatalEnabled in interface org.jomc.logging.Logger

fatal

public void fatal(String string)
Specified by:
fatal in interface org.jomc.logging.Logger

fatal

public void fatal(Throwable throwable)
Specified by:
fatal in interface org.jomc.logging.Logger

fatal

public void fatal(String message,
                  Throwable throwable)
Specified by:
fatal in interface org.jomc.logging.Logger

isInfoEnabled

public boolean isInfoEnabled()
Specified by:
isInfoEnabled in interface org.jomc.logging.Logger

info

public void info(String string)
Specified by:
info in interface org.jomc.logging.Logger

info

public void info(Throwable throwable)
Specified by:
info in interface org.jomc.logging.Logger

info

public void info(String message,
                 Throwable throwable)
Specified by:
info in interface org.jomc.logging.Logger

isTraceEnabled

public boolean isTraceEnabled()
Specified by:
isTraceEnabled in interface org.jomc.logging.Logger

trace

public void trace(String string)
Specified by:
trace in interface org.jomc.logging.Logger

trace

public void trace(Throwable throwable)
Specified by:
trace in interface org.jomc.logging.Logger

trace

public void trace(String message,
                  Throwable throwable)
Specified by:
trace in interface org.jomc.logging.Logger

isWarnEnabled

public boolean isWarnEnabled()
Specified by:
isWarnEnabled in interface org.jomc.logging.Logger

warn

public void warn(String string)
Specified by:
warn in interface org.jomc.logging.Logger

warn

public void warn(Throwable throwable)
Specified by:
warn in interface org.jomc.logging.Logger

warn

public void warn(String message,
                 Throwable throwable)
Specified by:
warn in interface org.jomc.logging.Logger

getLogger

public org.apache.log4j.Logger getLogger()
Requests a Log4J logger for the name given by property name.

Returns:
The Log4J logger for the name given by property name.

onLog

public void onLog(Level level,
                  String message,
                  Throwable throwable)
Specified by:
onLog in interface org.jomc.spi.Listener


Copyright © 2005-2010 The JOMC Project. All Rights Reserved.