|
EAF 7.6 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
java.io.PrintWriter
com.lutris.logging.LogWriter
public class LogWriter
Class use to write log output to a particular LogChannel and level. This class is PrintWriter, with println() causing a write. One should use println() with this rather than write, as with a LogChannel, since write doesn't write a full line.
Field Summary |
---|
Fields inherited from class java.io.PrintWriter |
---|
out |
Fields inherited from class java.io.Writer |
---|
lock |
Constructor Summary | |
---|---|
protected |
LogWriter(LogChannel logChannel,
int logLevel)
Constructor. |
protected |
LogWriter(LogChannel logChannel,
java.lang.String logLevel)
Constructor. |
Method Summary | |
---|---|
LogChannel |
getChannel()
Get the associate channel. |
int |
getLevel()
Get the associate level. |
boolean |
isEnabled()
Determine if logging is enabled. |
void |
println(java.lang.String msg,
java.lang.Throwable throwable)
Write a string and exception to the log file. |
Methods inherited from class java.io.PrintWriter |
---|
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected LogWriter(LogChannel logChannel, java.lang.String logLevel)
logChannel
- The log channel to write to.logLevel
- The level associated with this channel.protected LogWriter(LogChannel logChannel, int logLevel)
logChannel
- The log channel to write to.logLevel
- The level associated with this channel.Method Detail |
---|
public LogChannel getChannel()
public int getLevel()
public boolean isEnabled()
true
if enabled, false
if not
enabled.public void println(java.lang.String msg, java.lang.Throwable throwable)
msg
- The message to log.throwable
- Exception or error to log.
|
EAF 7.6 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |