org.ops4j.pax.logging
Class DefaultServiceLog
java.lang.Object
org.ops4j.pax.logging.DefaultServiceLog
- All Implemented Interfaces:
- PaxLogger
public class DefaultServiceLog
- extends java.lang.Object
- implements PaxLogger
This Logger will be used when the Pax Logging Service is not available.
Defaults to DEBUG but can be changed if if the "org.ops4j.pax.logging.DefaultServiceLog.level" system property
is set to on of the following: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, or NONE, prior to this class is loaded,
OR by calling the static method DefaultServiceLog.setLogLevel( String level ), where
level is one of the same strings.
|
Field Summary |
static int |
level
|
|
Constructor Summary |
DefaultServiceLog(org.osgi.framework.Bundle bundle,
java.lang.String categoryName)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
level
public static int level
DefaultServiceLog
public DefaultServiceLog(org.osgi.framework.Bundle bundle,
java.lang.String categoryName)
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabled in interface PaxLogger
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled in interface PaxLogger
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled in interface PaxLogger
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled in interface PaxLogger
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled in interface PaxLogger
isFatalEnabled
public boolean isFatalEnabled()
- Specified by:
isFatalEnabled in interface PaxLogger
trace
public void trace(java.lang.String message,
java.lang.Throwable t)
- Specified by:
trace in interface PaxLogger
debug
public void debug(java.lang.String message,
java.lang.Throwable t)
- Specified by:
debug in interface PaxLogger
inform
public void inform(java.lang.String message,
java.lang.Throwable t)
- Specified by:
inform in interface PaxLogger
warn
public void warn(java.lang.String message,
java.lang.Throwable t)
- Specified by:
warn in interface PaxLogger
error
public void error(java.lang.String message,
java.lang.Throwable t)
- Specified by:
error in interface PaxLogger
fatal
public void fatal(java.lang.String message,
java.lang.Throwable t)
- Specified by:
fatal in interface PaxLogger
getLogLevel
public int getLogLevel()
- Specified by:
getLogLevel in interface PaxLogger
setLogLevel
public static void setLogLevel(java.lang.String level)
getName
public java.lang.String getName()
- Specified by:
getName in interface PaxLogger
getPaxContext
public PaxContext getPaxContext()
- Specified by:
getPaxContext in interface PaxLogger
Copyright © 2006-2009 OPS4J - Open Participation Software for Java. All Rights Reserved.