|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.utils.logging.GCUBELog
public class GCUBELog
A wrapper of logger implementations built on top of org.apache.commons.logging interfaces and configuration.
It can be configured to prepend a given string to all messagges, where the prefix is either explicitly provided or
is extracted from a GCUBEContext.
| Constructor Summary | |
|---|---|
GCUBELog(Object obj)
Creates a new logger for a given object. |
|
GCUBELog(Object obj,
GCUBEContext context)
Creates a new logger for a given object and in a given context. |
|
GCUBELog(Object obj,
String prefix)
Creates a new logger for a given object and with a given prefix to prepend to all log messages. |
|
| Method Summary | |
|---|---|
void |
debug(Object arg0)
|
void |
debug(Object arg0,
Throwable arg1)
|
void |
error(Object arg0)
|
void |
error(Object arg0,
Throwable arg1)
|
void |
fatal(Object arg0)
|
void |
fatal(Object arg0,
Throwable arg1)
|
String |
getPrefix()
Returns the log prefix. |
void |
info(Object arg0)
|
void |
info(Object arg0,
Throwable arg1)
|
boolean |
isDebugEnabled()
|
boolean |
isErrorEnabled()
|
boolean |
isFatalEnabled()
|
boolean |
isInfoEnabled()
|
boolean |
isTraceEnabled()
|
boolean |
isWarnEnabled()
|
void |
setContext(GCUBEContext context)
Sets the logging context. |
void |
setPrefix(String prefix)
Sets the log prefix. |
void |
trace(Object arg0)
|
void |
trace(Object arg0,
Throwable arg1)
|
void |
warn(Object arg0)
|
void |
warn(Object arg0,
Throwable arg1)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GCUBELog(Object obj,
GCUBEContext context)
obj - the object.context - the service context.
public GCUBELog(Object obj,
String prefix)
obj - the object.prefix - the prefix..public GCUBELog(Object obj)
obj - the object.| Method Detail |
|---|
public void debug(Object arg0)
Log.debug(Object)
public void debug(Object arg0,
Throwable arg1)
Log.debug(Object, Throwable)public void error(Object arg0)
Log.error(Object)
public void error(Object arg0,
Throwable arg1)
Log.error(Object,Throwable)public void fatal(Object arg0)
Log.fatal(Object)
public void fatal(Object arg0,
Throwable arg1)
Log.fatal(Object,Throwable)public void info(Object arg0)
Log.info(Object)
public void info(Object arg0,
Throwable arg1)
Log.fatal(Object, Throwable)public void trace(Object arg0)
Log.trace(Object)
public void trace(Object arg0,
Throwable arg1)
Log.fatal(Object, Throwable)public void warn(Object arg0)
Log.warn(Object)
public void warn(Object arg0,
Throwable arg1)
Log.warn(Object, Throwable)public boolean isDebugEnabled()
Log.isDebugEnabled()public boolean isErrorEnabled()
Log.isErrorEnabled()public boolean isFatalEnabled()
Log.isFatalEnabled()public boolean isInfoEnabled()
Log.isInfoEnabled()public boolean isTraceEnabled()
Log.isTraceEnabled()public boolean isWarnEnabled()
Log.isWarnEnabled()public String getPrefix()
public void setPrefix(String prefix)
prefix - the prefix.public void setContext(GCUBEContext context)
context - the context.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||