|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.inxar.hotswap.ConsoleLog
Concrete implementation of ProxyLog
that writes to the
console (or any Writer
, to be precise). The logging
priorities can be set by OR'ing the PRI_XXX constants and passing
it to the appropriate constructor. The user should also call
close()
at the end of the session.
Inner classes inherited from class org.inxar.hotswap.ProxyLog |
ProxyLog.Channel |
Field Summary | |
static int |
PRI_DEBUG
Logging priority constant. |
static int |
PRI_FATAL
Logging priority constant. |
static int |
PRI_INFO
Logging priority constant. |
static int |
PRI_WARN
Logging priority constant. |
Constructor Summary | |
ConsoleLog()
Constructs a ConsoleLog that writes to
System.out with all priorities enabled. |
|
ConsoleLog(int priorities)
Constructs a ConsoleLog that writes to
System.out with the given priorities enabled. |
|
ConsoleLog(int priorities,
Writer out)
Constructs a ConsoleLog that writes to the given
Writer with the given priorities enabled. |
|
ConsoleLog(Writer out)
Constructs a ConsoleLog that writes to the given
Writer with all priorites enabled. |
Method Summary | |
void |
addPriority(int priority)
OR's the given priority level to the current set of activated log priority levels. |
void |
close()
Closes the Stream was well as printing a summary of the channels that were involved in the logging session. |
boolean |
initialize(Properties p)
This is used within ProxyClassLoader.initProxyLog |
ProxyLog.Channel |
newChannel(String name,
Object obj)
Creates a new logging channel for the given Object
under the given "common" label. |
void |
removePriority(int priority)
AND NOT's the given priority level from the current set of activated log priority levels. |
void |
setPriority(int priorities)
Sets the given priority levels. |
String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int PRI_DEBUG
public static final int PRI_INFO
public static final int PRI_WARN
public static final int PRI_FATAL
Constructor Detail |
public ConsoleLog()
ConsoleLog
that writes to
System.out
with all priorities enabled.public ConsoleLog(Writer out)
ConsoleLog
that writes to the given
Writer
with all priorites enabled.public ConsoleLog(int priorities)
ConsoleLog
that writes to
System.out
with the given priorities enabled.public ConsoleLog(int priorities, Writer out)
ConsoleLog
that writes to the given
Writer
with the given priorities enabled.Method Detail |
public String toString()
toString
in class Object
public ProxyLog.Channel newChannel(String name, Object obj)
ProxyLog
Object
under the given "common" label.newChannel
in interface ProxyLog
public boolean initialize(Properties p)
initialize
in interface ProxyLog
public void addPriority(int priority)
public void removePriority(int priority)
public void setPriority(int priorities)
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |