org.norther.tammi.root.ojb
Class OJBLogger
java.lang.Object
org.norther.tammi.root.ojb.OJBLogger
- All Implemented Interfaces:
- Serializable, org.apache.ojb.broker.util.configuration.Configurable, Logger
public class OJBLogger
- extends Object
- implements Logger
An OJB logger facade.
- Author:
- Ilkka Priha
- See Also:
- Serialized Form
|
Method Summary |
void |
configure(org.apache.ojb.broker.util.configuration.Configuration config)
|
void |
debug(Object msg)
|
void |
debug(Object msg,
Throwable t)
|
void |
error(Object msg)
|
void |
error(Object msg,
Throwable t)
|
void |
fatal(Object msg)
|
void |
fatal(Object msg,
Throwable t)
|
MBeanServer |
getMBeanServer()
Gets the MBean server. |
String |
getName()
|
void |
info(Object msg)
|
void |
info(Object msg,
Throwable t)
|
boolean |
isDebugEnabled()
|
boolean |
isEnabledFor(int priority)
|
void |
safeDebug(String msg,
Object obj)
|
void |
safeDebug(String msg,
Object obj,
Throwable t)
|
void |
safeError(String msg,
Object obj)
|
void |
safeError(String msg,
Object obj,
Throwable t)
|
void |
safeFatal(String msg,
Object obj)
|
void |
safeFatal(String msg,
Object obj,
Throwable t)
|
void |
safeInfo(String msg,
Object obj)
|
void |
safeInfo(String msg,
Object obj,
Throwable t)
|
void |
safeWarn(String msg,
Object obj)
|
void |
safeWarn(String msg,
Object obj,
Throwable t)
|
void |
setMBeanServer(MBeanServer server)
Sets the MBean server. |
void |
warn(Object msg)
|
void |
warn(Object msg,
Throwable t)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OJBLogger
public OJBLogger(String name)
- Constructs a new logger.
- Parameters:
name - the logger name.
configure
public void configure(org.apache.ojb.broker.util.configuration.Configuration config)
throws org.apache.ojb.broker.util.configuration.ConfigurationException
- Specified by:
configure in interface org.apache.ojb.broker.util.configuration.Configurable- Specified by:
configure in interface Logger
- Throws:
org.apache.ojb.broker.util.configuration.ConfigurationException
debug
public void debug(Object msg)
- Specified by:
debug in interface Logger
info
public void info(Object msg)
- Specified by:
info in interface Logger
warn
public void warn(Object msg)
- Specified by:
warn in interface Logger
error
public void error(Object msg)
- Specified by:
error in interface Logger
fatal
public void fatal(Object msg)
- Specified by:
fatal in interface Logger
debug
public void debug(Object msg,
Throwable t)
- Specified by:
debug in interface Logger
info
public void info(Object msg,
Throwable t)
- Specified by:
info in interface Logger
warn
public void warn(Object msg,
Throwable t)
- Specified by:
warn in interface Logger
error
public void error(Object msg,
Throwable t)
- Specified by:
error in interface Logger
fatal
public void fatal(Object msg,
Throwable t)
- Specified by:
fatal in interface Logger
isEnabledFor
public boolean isEnabledFor(int priority)
- Specified by:
isEnabledFor in interface Logger
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled in interface Logger
getName
public String getName()
- Specified by:
getName in interface Logger
safeDebug
public void safeDebug(String msg,
Object obj)
- Specified by:
safeDebug in interface Logger
safeDebug
public void safeDebug(String msg,
Object obj,
Throwable t)
- Specified by:
safeDebug in interface Logger
safeInfo
public void safeInfo(String msg,
Object obj)
- Specified by:
safeInfo in interface Logger
safeInfo
public void safeInfo(String msg,
Object obj,
Throwable t)
- Specified by:
safeInfo in interface Logger
safeWarn
public void safeWarn(String msg,
Object obj)
- Specified by:
safeWarn in interface Logger
safeWarn
public void safeWarn(String msg,
Object obj,
Throwable t)
- Specified by:
safeWarn in interface Logger
safeError
public void safeError(String msg,
Object obj)
- Specified by:
safeError in interface Logger
safeError
public void safeError(String msg,
Object obj,
Throwable t)
- Specified by:
safeError in interface Logger
safeFatal
public void safeFatal(String msg,
Object obj)
- Specified by:
safeFatal in interface Logger
safeFatal
public void safeFatal(String msg,
Object obj,
Throwable t)
- Specified by:
safeFatal in interface Logger
getMBeanServer
public MBeanServer getMBeanServer()
- Gets the MBean server.
- Returns:
- the MBean server.
setMBeanServer
public void setMBeanServer(MBeanServer server)
- Sets the MBean server.
- Parameters:
server - the MBean server.
Copyright © 2004 The Norther Organization. All rights reserved.