public class LoggerWriter extends Writer
| Modifier and Type | Field and Description |
|---|---|
protected Logger |
logger |
protected String |
prefix |
| Constructor and Description |
|---|
LoggerWriter(Logger log,
Level lev) |
LoggerWriter(Logger log,
Level lev,
String p) |
public LoggerWriter(Logger log, Level lev)
log - The logger to which this Writer must write everythinlev - On which level this must happen. If you want to log on different levels, then
override getLevel(String)protected String getPrefix()
protected void logLine(String line)
public long getCount()
public void write(char[] buf,
int start,
int end)
throws IOException
write in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionMMBase 1.9-SNAPSHOT - ${javadoctimestamp}