|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atomikos.diagnostics.CascadedConsole
public class CascadedConsole
A cascaded message console for system output warnings.
| Field Summary |
|---|
| Fields inherited from interface com.atomikos.diagnostics.Console |
|---|
DEBUG, INFO, WARN |
| Constructor Summary | |
|---|---|
CascadedConsole(Console first,
Console last)
Construct a new instance. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying consoles. |
int |
getLevel()
Gets the level of the console. |
void |
print(String string)
Print a message to the output of the console(s). |
void |
print(String string,
int level)
Print a string with a given level of granularity. |
void |
println(String string)
Print a message to the output of the console(s). |
void |
println(String string,
int level)
Print a string with newline, at a given level of granularity. |
void |
setLevel(int level)
Set the overall granularity level of the console. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CascadedConsole(Console first,
Console last)
first - The console where messages are displayed first.last - The console where messages are cascaded
after display on first console.| Method Detail |
|---|
public void println(String string)
throws IOException
println in interface Consolestring - The message to output.java.io.IOException - On failure.
IOException - On failure.
public void print(String string)
throws IOException
print in interface Consolestring - The message to output.java.io.IOException - On failure.
IOException - On failure.
public void close()
throws IOException
close in interface ConsoleIOException - On failure.
public void println(String string,
int level)
throws IOException
Console
println in interface Consolestring - The string.level - The level (one of the predefined constants).
IOException - On failure.
public void print(String string,
int level)
throws IOException
Console
print in interface Consolestring - The stringlevel - The level (one of the predefined constants).
IOException - On failure.public void setLevel(int level)
Console
setLevel in interface Consolelevel - The level, one of the predefined constants.
Default is WARN.public int getLevel()
Console
getLevel in interface ConsoleConsole.getLevel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||