|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.logging.simple.SimpleLogger
Simple logging adapter implementation.
Constructor Summary | |
SimpleLogger()
Constructs new SimpleLoggingAdapter object. |
|
SimpleLogger(java.io.OutputStream infoStream)
Constructs new SimpleLoggingAdapter object. |
|
SimpleLogger(java.io.OutputStream errorStream,
java.io.OutputStream infoStream)
Constructs new SimpleLoggingAdapter object. |
|
SimpleLogger(java.io.PrintStream errorStream)
Constructs new SimpleLoggingAdapter object. |
|
SimpleLogger(java.io.PrintStream errorStream,
java.io.PrintStream infoStream)
Constructs new SimpleLoggingAdapter object. |
Method Summary | |
int |
getLevel()
Returns logging level. |
java.lang.String |
getName()
Returns the name of the logging adapter. |
boolean |
isLoggable(int level)
Returns true if logging on the specified level is enabled. |
void |
log(int level,
java.lang.String fileName,
int lineNumber,
java.lang.String message,
java.lang.Throwable t)
Logs a message. |
void |
log(int level,
java.lang.String message,
java.lang.Throwable t)
Logs a message. |
void |
setLevel(int level)
Sets logging level. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleLogger()
public SimpleLogger(java.io.OutputStream infoStream)
infoStream
- the info streampublic SimpleLogger(java.io.OutputStream errorStream, java.io.OutputStream infoStream)
errorStream
- the error streaminfoStream
- the info streampublic SimpleLogger(java.io.PrintStream errorStream)
errorStream
- the error print streampublic SimpleLogger(java.io.PrintStream errorStream, java.io.PrintStream infoStream)
errorStream
- the error print streaminfoStream
- the info print streamMethod Detail |
public java.lang.String getName()
getName
in interface LoggingAdapter
public boolean isLoggable(int level)
isLoggable
in interface LoggingAdapter
level
- the logging level
public int getLevel()
getLevel
in interface LoggingAdapter
public void setLevel(int level)
setLevel
in interface LoggingAdapter
level
- the logging levelpublic void log(int level, java.lang.String message, java.lang.Throwable t)
log
in interface LoggingAdapter
level
- the logging levelmessage
- the messaget
- the throwablepublic void log(int level, java.lang.String fileName, int lineNumber, java.lang.String message, java.lang.Throwable t)
log
in interface LoggingAdapter
level
- the logging levelfileName
- the file namelineNumber
- the line numbermessage
- the messaget
- the throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |