| java.lang.Object winstone.Logger
Logger | public class Logger (Code) | | A utility class for logging event and status messages. It maintains a
collection of streams for different types of messages, but any messages with
unknown or unspecified stream go to the default stream.
author: Rick Knowles version: $Id: Logger.java,v 1.8 2006/11/09 06:01:43 rickknowles Exp $ |
Method Summary | |
public static void | flush(String name) | public static void | init(int level) | public static void | init(int level, OutputStream defaultStream, boolean showThrowingThreadArg) | public static void | log(int level, WinstoneResourceBundle resources, String messageKey) | public static void | log(int level, WinstoneResourceBundle resources, String messageKey, Throwable error) | public static void | log(int level, WinstoneResourceBundle resources, String messageKey, String param) | public static void | log(int level, WinstoneResourceBundle resources, String messageKey, String params) | public static void | log(int level, WinstoneResourceBundle resources, String messageKey, String param, Throwable error) | public static void | log(int level, WinstoneResourceBundle resources, String messageKey, String params, Throwable error) | public static void | log(int level, WinstoneResourceBundle resources, String streamName, String messageKey, String params, Throwable error) | public static void | logDirectMessage(int level, String streamName, String message, Throwable error) | public static void | setCurrentDebugLevel(int level) | public static void | setStream(String name, OutputStream stream) | public static void | setStream(String name, Writer stream) |
DEBUG | public static int DEBUG(Code) | | |
DEFAULT_STREAM | final public static String DEFAULT_STREAM(Code) | | |
ERROR | public static int ERROR(Code) | | |
FULL_DEBUG | public static int FULL_DEBUG(Code) | | |
INFO | public static int INFO(Code) | | |
MAX | public static int MAX(Code) | | |
MIN | public static int MIN(Code) | | |
SPEED | public static int SPEED(Code) | | |
WARNING | public static int WARNING(Code) | | |
currentDebugLevel | protected static int currentDebugLevel(Code) | | |
initialised | protected static boolean initialised(Code) | | |
namedStreams | protected static Map namedStreams(Code) | | |
showThrowingThread | protected static boolean showThrowingThread(Code) | | |
flush | public static void flush(String name)(Code) | | Forces a flush of the contents to file, display, etc
|
init | public static void init(int level)(Code) | | Initialises default streams
|
init | public static void init(int level, OutputStream defaultStream, boolean showThrowingThreadArg)(Code) | | Initialises default streams
|
setCurrentDebugLevel | public static void setCurrentDebugLevel(int level)(Code) | | |
setStream | public static void setStream(String name, OutputStream stream)(Code) | | Allocates a stream for redirection to a file etc
|
setStream | public static void setStream(String name, Writer stream)(Code) | | Allocates a stream for redirection to a file etc
|
|
|