| java.lang.Object net.sourceforge.groboutils.autodoc.v1.log4j.Log4jLog
Log4jLog | public class Log4jLog implements AutoDocLog(Code) | | An interface for logging. This allows for an abstraction between the
owning class and any underlying logging mechanism desired.
The actual meaning of the logging levels is implementation independent.
author: Matt Albrecht groboclown@users.sourceforge.net version: $Date: 2003/02/10 22:52:12 $ since: March 16, 2002 |
Constructor Summary | |
public | Log4jLog(Class owner) Standard constructor - uses the Logger based on the given class. | public | Log4jLog(Logger log) Create a log interface based on the given Apache Logger.
Parameters: log - the underlying log instance to use for logging. |
Log4jLog | public Log4jLog(Class owner)(Code) | | Standard constructor - uses the Logger based on the given class.
Parameters: owner - the owning class to assign log responsibility to.Must not be null. exception: IllegalArgumentException - if owner is null. |
Log4jLog | public Log4jLog(Logger log)(Code) | | Create a log interface based on the given Apache Logger.
Parameters: log - the underlying log instance to use for logging. Must notbe null. exception: IllegalArgumentException - if owner is null. |
concatMessage | protected Object concatMessage(Object o)(Code) | | Concatenate the given array into a single string. The returned object
will be of type java.lang.StringBuffer or
java.lang.String; use toString() on the resulting
object.
Parameters: o - an array (possibly null) of objects (possibly null) toconcatenate their toString() results together. the concatenated message. See Also: java.lang.StringBuffer |
setLog | protected void setLog(Logger log)(Code) | | Sets the internal log instance.
Parameters: log - the log to set. It must not be null. exception: IllegalArgumentException - if log is null. |
|
|