|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.diagnostics.Slf4jConsole
public class Slf4jConsole
A console that delegates to slf4j - this ensures log4j compatibility.
Field Summary |
---|
Fields inherited from interface com.atomikos.diagnostics.Console |
---|
DEBUG, INFO, WARN |
Constructor Summary | |
---|---|
Slf4jConsole()
|
Method Summary | |
---|---|
void |
close()
Closes the console after use. |
int |
getLevel()
The level. |
void |
print(String string)
This method does nothing for SLF4J - printing without newline would be too expensive since it is not supported in SLF4J. |
void |
print(String string,
int level)
This method does nothing for SLF4J - printing without newline would be too expensive since it is not supported in SLF4J. |
void |
println(String string)
Print a message to the output of the console. |
void |
println(String string,
int level)
Print a string with newline, at a given level of granularity. |
void |
setLevel(int level)
Setting the level has no filtering effect for this class: the output level is determined by the underlying logging tool's separate configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Slf4jConsole()
Method Detail |
---|
public void close() throws IOException
Console
close
in interface Console
IOException
- On failure.public int getLevel()
getLevel
in interface Console
public void print(String string) throws IOException
print
in interface Console
string
- The string to print.
IOException
- On failure.public void print(String string, int level) throws IOException
print
in interface Console
string
- The stringlevel
- The level (one of the predefined constants).
IOException
- On failure.public void println(String string) throws IOException
Console
println
in interface Console
string
- The message to output.
IOException
- On failure.public void println(String string, int level) throws IOException
Console
println
in interface Console
string
- The string.level
- The level (one of the predefined constants).
IOException
- On failure.public void setLevel(int level)
setLevel
in interface Console
level
- The level, one of the predefined constants.
Default is WARN.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |