|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.core.util.BufferedLogger
public class BufferedLogger
Class with static methods wrapping Logger
methods. Automatically sets up logger for you. It's called the BufferedLogger
because
it handles everything in a StringBuilder
using StringBuilder.append(CharSequence)
method
To use these just do
import BufferedLogger.*
Logger
Constructor Summary | |
---|---|
BufferedLogger()
|
Method Summary | |
---|---|
static void |
debug(Object... objs)
Wraps Logger#debug(String) |
static void |
error(Object... objs)
Wraps Logger#error(String) |
static void |
fatal(Object... objs)
Wraps Logger#fatal(String) |
static void |
info(Object... objs)
Wraps Logger#info(String) |
static org.apache.log4j.Logger |
logger()
Uses StackTraceElement[] from Throwable to determine the calling class. |
static void |
trace(Object... objs)
Wraps Logger#trace(String) |
static void |
warn(Object... objs)
Wraps Logger#warn(String) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BufferedLogger()
Method Detail |
---|
public static final org.apache.log4j.Logger logger()
StackTraceElement[]
from Throwable
to determine the calling class. Then, the Logger
is retrieved for it by
convention. Just like getLogger()
except this is intended to be called directly from classes.
public static final void trace(Object... objs)
Logger#trace(String)
pattern
- to format againstobjs
- an array of objects used as parameters to the pattern
public static final void debug(Object... objs)
Logger#debug(String)
pattern
- to format againstobjs
- an array of objects used as parameters to the pattern
public static final void info(Object... objs)
Logger#info(String)
pattern
- to format againstobjs
- an array of objects used as parameters to the pattern
public static final void warn(Object... objs)
Logger#warn(String)
pattern
- to format againstobjs
- an array of objects used as parameters to the pattern
public static final void error(Object... objs)
Logger#error(String)
pattern
- to format againstobjs
- an array of objects used as parameters to the pattern
public static final void fatal(Object... objs)
Logger#fatal(String)
pattern
- to format againstobjs
- an array of objects used as parameters to the pattern
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |