org.kuali.rice.core.util
Class BufferedLogger

java.lang.Object
  extended by org.kuali.rice.core.util.BufferedLogger

public class BufferedLogger
extends Object

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.*

See Also:
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

BufferedLogger

public BufferedLogger()
Method Detail

logger

public static final org.apache.log4j.Logger logger()
Uses 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.

Returns:
Logger for the calling class

trace

public static final void trace(Object... objs)
Wraps Logger#trace(String)

Parameters:
pattern - to format against
objs - an array of objects used as parameters to the pattern

debug

public static final void debug(Object... objs)
Wraps Logger#debug(String)

Parameters:
pattern - to format against
objs - an array of objects used as parameters to the pattern

info

public static final void info(Object... objs)
Wraps Logger#info(String)

Parameters:
pattern - to format against
objs - an array of objects used as parameters to the pattern

warn

public static final void warn(Object... objs)
Wraps Logger#warn(String)

Parameters:
pattern - to format against
objs - an array of objects used as parameters to the pattern

error

public static final void error(Object... objs)
Wraps Logger#error(String)

Parameters:
pattern - to format against
objs - an array of objects used as parameters to the pattern

fatal

public static final void fatal(Object... objs)
Wraps Logger#fatal(String)

Parameters:
pattern - to format against
objs - an array of objects used as parameters to the pattern


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.