| java.lang.Object java.io.Writer java.io.PrintWriter com.lutris.logging.LogWriter
All known Subclasses: com.lutris.logging.MonologWriter, com.lutris.logging.Log4jLogWriter,
LogWriter | public class LogWriter extends PrintWriter (Code) | | 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.
|
LogWriter | protected LogWriter(LogChannel logChannel, String logLevel)(Code) | | Constructor.
Parameters: logChannel - The log channel to write to. Parameters: logLevel - The level associated with this channel. |
LogWriter | protected LogWriter(LogChannel logChannel, int logLevel)(Code) | | Constructor.
Parameters: logChannel - The log channel to write to. Parameters: logLevel - The level associated with this channel. |
getLevel | public int getLevel()(Code) | | Get the associate level.
|
isEnabled | public boolean isEnabled()(Code) | | Determine if logging is enabled. This is useful to prevent a series of
unnecessary logging calls, as often encountered with debug logging, or
a call where generating the message is expensive.
true if enabled, false if notenabled. |
println | public void println(String msg, Throwable throwable)(Code) | | Write a string and exception to the log file.
Parameters: msg - The message to log. Parameters: throwable - Exception or error to log. |
Methods inherited from java.io.PrintWriter | public PrintWriter append(CharSequence csq)(Code)(Java Doc) public PrintWriter append(CharSequence csq, int start, int end)(Code)(Java Doc) public PrintWriter append(char c)(Code)(Java Doc) public boolean checkError()(Code)(Java Doc) protected void clearError()(Code)(Java Doc) public void close()(Code)(Java Doc) public void flush()(Code)(Java Doc) public PrintWriter format(String format, Object... args)(Code)(Java Doc) public PrintWriter format(Locale l, String format, Object... args)(Code)(Java Doc) public void print(boolean b)(Code)(Java Doc) public void print(char c)(Code)(Java Doc) public void print(int i)(Code)(Java Doc) public void print(long l)(Code)(Java Doc) public void print(float f)(Code)(Java Doc) public void print(double d)(Code)(Java Doc) public void print(char s)(Code)(Java Doc) public void print(String s)(Code)(Java Doc) public void print(Object obj)(Code)(Java Doc) public PrintWriter printf(String format, Object... args)(Code)(Java Doc) public PrintWriter printf(Locale l, String format, Object... args)(Code)(Java Doc) public void println()(Code)(Java Doc) public void println(boolean x)(Code)(Java Doc) public void println(char x)(Code)(Java Doc) public void println(int x)(Code)(Java Doc) public void println(long x)(Code)(Java Doc) public void println(float x)(Code)(Java Doc) public void println(double x)(Code)(Java Doc) public void println(char x)(Code)(Java Doc) public void println(String x)(Code)(Java Doc) public void println(Object x)(Code)(Java Doc) protected void setError()(Code)(Java Doc) public void write(int c)(Code)(Java Doc) public void write(char buf, int off, int len)(Code)(Java Doc) public void write(char buf)(Code)(Java Doc) public void write(String s, int off, int len)(Code)(Java Doc) public void write(String s)(Code)(Java Doc)
|
|
|