org.riotfamily.common.log
Class RiotLog
java.lang.Object
org.riotfamily.common.log.RiotLog
public class RiotLog
- extends Object
Thin wrapper around Log4J that supports varargs. All framework
code should use this class so that we can easily switch to another logging
framework in future.
- Since:
- 8.0
- Author:
- Felix Gnass [fgnass at neteye dot de]
Method Summary |
static void |
clear()
|
void |
debug(Object msg)
|
void |
debug(String msg,
Object... args)
|
void |
error(Object msg)
|
void |
error(Object msg,
Throwable t)
|
void |
error(String msg,
Object... args)
|
void |
error(String msg,
Throwable t,
Object... args)
|
void |
error(Throwable t)
|
void |
fatal(Object msg)
|
void |
fatal(Object msg,
Throwable t)
|
void |
fatal(String msg,
Throwable t,
Object... args)
|
void |
fatal(Throwable t)
|
static RiotLog |
get(Class<?> clazz)
|
static RiotLog |
get(Object obj)
|
static RiotLog |
get(String name)
|
void |
info(Object msg)
|
void |
info(String msg,
Object... args)
|
boolean |
isDebugEnabled()
|
boolean |
isInfoEnabled()
|
boolean |
isTraceEnabled()
|
static String |
pop()
|
static void |
push(String msg)
|
static void |
put(String key,
Object value)
|
static void |
remove(String key)
|
static void |
setClearMdcDeferred(boolean clearMdcDeferred)
|
void |
trace(Object msg)
|
void |
trace(String msg,
Object... args)
|
void |
warn(Object msg)
|
void |
warn(Object msg,
Throwable t)
|
void |
warn(String msg,
Object... args)
|
void |
warn(String msg,
Throwable t,
Object... args)
|
void |
warn(Throwable t)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
get
public static RiotLog get(Class<?> clazz)
get
public static RiotLog get(Object obj)
get
public static RiotLog get(String name)
isTraceEnabled
public boolean isTraceEnabled()
trace
public void trace(Object msg)
trace
public void trace(String msg,
Object... args)
isDebugEnabled
public boolean isDebugEnabled()
debug
public void debug(Object msg)
debug
public void debug(String msg,
Object... args)
isInfoEnabled
public boolean isInfoEnabled()
info
public void info(Object msg)
info
public void info(String msg,
Object... args)
warn
public void warn(Object msg)
warn
public void warn(Throwable t)
warn
public void warn(Object msg,
Throwable t)
warn
public void warn(String msg,
Throwable t,
Object... args)
warn
public void warn(String msg,
Object... args)
error
public void error(Object msg)
error
public void error(Throwable t)
error
public void error(Object msg,
Throwable t)
error
public void error(String msg,
Throwable t,
Object... args)
error
public void error(String msg,
Object... args)
fatal
public void fatal(Object msg)
fatal
public void fatal(Throwable t)
fatal
public void fatal(Object msg,
Throwable t)
fatal
public void fatal(String msg,
Throwable t,
Object... args)
setClearMdcDeferred
public static void setClearMdcDeferred(boolean clearMdcDeferred)
put
public static void put(String key,
Object value)
remove
public static void remove(String key)
push
public static void push(String msg)
pop
public static String pop()
clear
public static void clear()