public class FileAppender extends java.lang.Object implements Appender
Modifier and Type | Field and Description |
---|---|
protected boolean |
closed
True if closed
|
static java.lang.String |
cvsId
Revision control id
|
protected java.io.PrintWriter |
log
Destination
|
Constructor and Description |
---|
FileAppender(java.lang.String file)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this appender
|
java.lang.String |
getFile()
Returns the path of the logging file.
|
void |
log(java.lang.String msg)
Log a message
|
void |
log(java.lang.Throwable t)
Log a stack trace
|
protected void |
open() |
public static final java.lang.String cvsId
protected java.io.PrintWriter log
protected boolean closed
public FileAppender(java.lang.String file) throws java.io.IOException
file
- file to log tojava.io.IOException
protected void open() throws java.io.IOException
java.io.IOException
public void log(java.lang.String msg)
public void log(java.lang.Throwable t)
Appender
public void close()
Appender
public java.lang.String getFile()
Copyright © 2001-2014 Enterprise Distributed Technologies Ltd. All Rights Reserved.