public class Log extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
boolean |
appendOnRestart
If the log writes to a file, should it append to the file on restart,
or should it overwrite the file?
|
static int |
D_STDERR
Specifies that the log should write to stderr (System.err)
|
static int |
D_STDOUT
Specifies that the log should write to stdout (System.out)
|
File |
filename
A filename, if the writer writes to a file
|
boolean |
isLoggingToSystemOut |
boolean |
postAnnouncements
Should the log post announcements?
|
boolean |
repostAnnouncementsOnRestart
Should the log repost all announcements on restart
|
LogRestarter |
restarter
The log's restarter
|
private static long |
serialVersionUID |
boolean |
silent
Should we write to this log at all?
|
PrintWriter |
writer
The log's writer
|
| Constructor and Description |
|---|
Log(File _filename,
boolean _postAnnouncements,
boolean _appendOnRestart)
Creates a log to a given filename; this file may or may not
be appended to on restart, depending on _appendOnRestart.
|
Log(File _filename,
boolean _postAnnouncements,
boolean _appendOnRestart,
boolean gzip)
Creates a log to a given filename; this file may or may not
be appended to on restart, depending on _appendOnRestart.
|
Log(int descriptor,
boolean _postAnnouncements)
Creates a log on stdout (descriptor == Log.D_STDOUT)
or stderr (descriptor == Log.D_STDERR).
|
Log(Writer _writer,
LogRestarter _restarter,
boolean _postAnnouncements,
boolean _repostAnnouncementsOnRestart)
Creates a log on a given Writer and custom LogRestarter.
|
private static final long serialVersionUID
public boolean silent
public transient PrintWriter writer
public File filename
public boolean postAnnouncements
public LogRestarter restarter
public boolean repostAnnouncementsOnRestart
public boolean appendOnRestart
public boolean isLoggingToSystemOut
public static final int D_STDOUT
public static final int D_STDERR
public Log(File _filename, boolean _postAnnouncements, boolean _appendOnRestart) throws IOException
IOExceptionpublic Log(File _filename, boolean _postAnnouncements, boolean _appendOnRestart, boolean gzip) throws IOException
IOExceptionpublic Log(int descriptor, boolean _postAnnouncements)
public Log(Writer _writer, LogRestarter _restarter, boolean _postAnnouncements, boolean _repostAnnouncementsOnRestart)
protected void finalize()
throws Throwable
public Log restart() throws IOException
IOExceptionpublic Log reopen() throws IOException
IOExceptionCopyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.