public class Logger extends Object
Modifier and Type | Field and Description |
---|---|
static Level |
DEBUG |
static String |
DEFAULT_STREAM |
protected static Writer |
defaultStream |
static Level |
ERROR |
static Level |
FULL_DEBUG |
static Level |
INFO |
protected static boolean |
initialised |
static Level |
MAX |
static Level |
MIN |
protected static Map |
namedStreams |
protected static DateFormat |
sdfLog |
protected static Boolean |
semaphore |
protected static boolean |
showThrowingThread |
static Level |
SPEED |
static Level |
WARNING |
Constructor and Description |
---|
Logger() |
Modifier and Type | Method and Description |
---|---|
static void |
flush(String name)
Forces a flush of the contents to file, display, etc
|
static void |
init(int level) |
static void |
init(Level level)
Initialises default streams
|
static void |
init(Level level,
OutputStream defaultStream,
boolean showThrowingThreadArg)
Initialises default streams
|
static void |
log(Level level,
WinstoneResourceBundle resources,
String messageKey) |
static void |
log(Level level,
WinstoneResourceBundle resources,
String messageKey,
Object... params) |
static void |
log(Level level,
WinstoneResourceBundle resources,
String messageKey,
Object param) |
static void |
log(Level level,
WinstoneResourceBundle resources,
String messageKey,
Object[] params,
Throwable error) |
static void |
log(Level level,
WinstoneResourceBundle resources,
String messageKey,
Object param,
Throwable error) |
static void |
log(Level level,
WinstoneResourceBundle resources,
String streamName,
String messageKey,
Object[] params,
Throwable error) |
static void |
log(Level level,
WinstoneResourceBundle resources,
String messageKey,
Throwable error) |
static void |
logDirectMessage(Level level,
String streamName,
String message,
Throwable error) |
static void |
setCurrentDebugLevel(int level) |
static void |
setStream(String name,
OutputStream stream)
Allocates a stream for redirection to a file etc
|
static void |
setStream(String name,
Writer stream)
Allocates a stream for redirection to a file etc
|
public static final String DEFAULT_STREAM
public static Level MIN
public static Level ERROR
public static Level WARNING
public static Level INFO
public static Level SPEED
public static Level DEBUG
public static Level FULL_DEBUG
public static Level MAX
protected static Boolean semaphore
protected static boolean initialised
protected static Writer defaultStream
protected static Map namedStreams
protected static final DateFormat sdfLog
protected static boolean showThrowingThread
public static void init(Level level)
public static void init(int level)
public static void init(Level level, OutputStream defaultStream, boolean showThrowingThreadArg)
public static void setStream(String name, OutputStream stream)
public static void setStream(String name, Writer stream)
public static void flush(String name)
public static void setCurrentDebugLevel(int level)
public static void log(Level level, WinstoneResourceBundle resources, String messageKey)
public static void log(Level level, WinstoneResourceBundle resources, String messageKey, Throwable error)
public static void log(Level level, WinstoneResourceBundle resources, String messageKey, Object param)
public static void log(Level level, WinstoneResourceBundle resources, String messageKey, Object... params)
public static void log(Level level, WinstoneResourceBundle resources, String messageKey, Object param, Throwable error)
public static void log(Level level, WinstoneResourceBundle resources, String messageKey, Object[] params, Throwable error)
public static void log(Level level, WinstoneResourceBundle resources, String streamName, String messageKey, Object[] params, Throwable error)
Copyright © 2014. All rights reserved.