public class BufferedLogger extends Object
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
import BufferedLogger.*
Logger
Constructor and Description |
---|
BufferedLogger() |
Modifier and Type | Method and Description |
---|---|
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) |
public BufferedLogger()
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
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.