org.jomc.logging.ri.jdk
Class JdkLogger

java.lang.Object
  extended by org.jomc.logging.ri.jdk.JdkLogger
All Implemented Interfaces:
org.jomc.logging.Logger

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

JDK logging system implementation.

Specifications

Properties

Version:
$Id: JdkLogger.java 1131 2009-12-09 23:42:18Z schulte2005 $
Author:
Christian Schulte 1.0

Constructor Summary
JdkLogger()
          Creates a new JdkLogger instance.
 
Method Summary
 void debug(String message)
           
 void debug(String message, Throwable throwable)
           
 void debug(Throwable throwable)
           
 void error(String message)
           
 void error(String message, Throwable throwable)
           
 void error(Throwable throwable)
           
 void fatal(String message)
           
 void fatal(String message, Throwable throwable)
           
 void fatal(Throwable throwable)
           
 Logger getLogger()
          Requests the JDK logger for the name given by property name.
 String getName()
          Gets the value of the name property.
 void info(String message)
           
 void info(String message, Throwable throwable)
           
 void info(Throwable throwable)
           
 boolean isDebugEnabled()
           
 boolean isErrorEnabled()
           
 boolean isFatalEnabled()
           
 boolean isInfoEnabled()
           
 boolean isTraceEnabled()
           
 boolean isWarnEnabled()
           
 void trace(String message)
           
 void trace(String message, Throwable throwable)
           
 void trace(Throwable throwable)
           
 void warn(String message)
           
 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

JdkLogger

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

Method Detail

isDebugEnabled

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

debug

public void debug(String message)
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 message)
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 message)
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 message)
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 message)
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 message)
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 Logger getLogger()
Requests the JDK logger for the name given by property name.

Returns:
the JDK logger for the name given by property name.

getName

@Generated(value="org.jomc.tools.JavaSources",
           comments="See http://jomc.sourceforge.net/jomc/1.0-alpha-11/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.


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