public class GCUBELog extends Object
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
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.public void debug(Object arg0)
Log.debug(Object)public void error(Object arg0)
Log.error(Object)public void fatal(Object arg0)
Log.fatal(Object)public void info(Object arg0)
Log.info(Object)public void trace(Object arg0)
Log.trace(Object)public void warn(Object arg0)
Log.warn(Object)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.Copyright © 2015. All Rights Reserved.