public class Logger extends Object
| Modifier and Type | Field and Description |
|---|---|
static Level |
DEBUG |
static String |
DEFAULT_STREAM |
static Level |
ERROR |
static Level |
FULL_DEBUG |
static Level |
INFO |
static Level |
MAX |
static Level |
MIN |
protected static Object |
semaphore |
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 final Level MIN
public static final Level ERROR
public static final Level WARNING
public static final Level INFO
public static final Level SPEED
public static final Level DEBUG
public static final Level FULL_DEBUG
public static final Level MAX
protected static final Object semaphore
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 © 2004–2020. All rights reserved.