public class StandardLogfile extends Object implements ILogSink
STDOUTSINK| Constructor and Description |
|---|
StandardLogfile() |
StandardLogfile(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected Date |
checkCycle()
Called when a new line is to be logged.
|
void |
exception(Throwable t,
String msg)
Logs an exception to the stream.
|
void |
flush() |
File |
getFile() |
String |
getName() |
protected PrintWriter |
getOutWriter() |
void |
log(String msg)
Logs a line to the stream.
|
void |
rawlog(String s) |
void |
setFile(File f)
Sets a new file as the logfile.
|
void |
setName(String name) |
protected void |
setOutWriter(PrintWriter outWriter) |
public StandardLogfile()
public StandardLogfile(String name)
public void setName(String name)
public String getName()
public File getFile()
public void setFile(File f)
f - protected Date checkCycle()
protected void setOutWriter(PrintWriter outWriter)
outWriter - The outWriter to set.protected PrintWriter getOutWriter()
public void rawlog(String s)
public void flush()
Copyright © 2017 etc.to. All rights reserved.