|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atomikos.diagnostics.RotatingFileConsole
public class RotatingFileConsole
A console that writes to a set of rotating files.
Field Summary |
---|
Fields inherited from interface com.atomikos.diagnostics.Console |
---|
DEBUG, INFO, WARN |
Constructor Summary | |
---|---|
RotatingFileConsole(String fileNamePattern,
int limit,
int fileCount)
|
Method Summary | |
---|---|
void |
close()
Closes the console after use. |
int |
getLevel()
Gets the level of the console. |
void |
print(String string)
Print a string to the output, but no newline at the end. |
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. |
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 RotatingFileConsole(String fileNamePattern, int limit, int fileCount) throws SecurityException, IOException
SecurityException
IOException
Method Detail |
---|
public void println(String string) throws IOException
Console
println
in interface Console
string
- The message to output.
IOException
- On failure.public void print(String string) throws IOException
Console
print
in interface Console
string
- The string to print.
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 print(String string, int level) throws IOException
Console
print
in interface Console
string
- The stringlevel
- The level (one of the predefined constants).
IOException
- On failure.public void close() throws IOException
Console
close
in interface Console
IOException
- On failure.public void setLevel(int level)
Console
setLevel
in interface Console
level
- The level, one of the predefined constants.
Default is WARN.public int getLevel()
Console
getLevel
in interface Console
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |