|
JBoss Log Manager 1.4.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Handler
org.jboss.logmanager.ExtHandler
org.jboss.logmanager.handlers.WriterHandler
org.jboss.logmanager.handlers.OutputStreamHandler
org.jboss.logmanager.handlers.FileHandler
public class FileHandler
A simple file handler.
| Field Summary |
|---|
| Fields inherited from class org.jboss.logmanager.handlers.WriterHandler |
|---|
outputLock |
| Fields inherited from class org.jboss.logmanager.ExtHandler |
|---|
handlers, handlersUpdater |
| Constructor Summary | |
|---|---|
FileHandler()
Construct a new instance with no formatter and no output file. |
|
FileHandler(File file)
Construct a new instance with the given output file. |
|
FileHandler(File file,
boolean append)
Construct a new instance with the given output file and append setting. |
|
FileHandler(Formatter formatter)
Construct a new instance with the given formatter and no output file. |
|
FileHandler(Formatter formatter,
File file)
Construct a new instance with the given formatter and output file. |
|
FileHandler(Formatter formatter,
File file,
boolean append)
Construct a new instance with the given formatter, output file, and append setting. |
|
FileHandler(String fileName)
Construct a new instance with the given output file. |
|
FileHandler(String fileName,
boolean append)
Construct a new instance with the given output file and append setting. |
|
| Method Summary | |
|---|---|
File |
getFile()
Get the current output file. |
void |
setAppend(boolean append)
Specify whether to append to the target file. |
void |
setFile(File file)
Set the output file. |
void |
setFileName(String fileName)
Set the output file by name. |
| Methods inherited from class org.jboss.logmanager.handlers.OutputStreamHandler |
|---|
getEncoding, setEncoding, setOutputStream, setWriter |
| Methods inherited from class org.jboss.logmanager.handlers.WriterHandler |
|---|
close, doPublish, flush, preWrite, safeClose |
| Methods inherited from class org.jboss.logmanager.ExtHandler |
|---|
addHandler, checkAccess, checkAccess, clearHandlers, disableAccess, enableAccess, getHandlers, isAutoFlush, isEnabled, protect, publish, publish, removeHandler, setAutoFlush, setEnabled, setErrorManager, setFilter, setFormatter, setHandlers, setLevel, unprotect |
| Methods inherited from class java.util.logging.Handler |
|---|
getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileHandler()
public FileHandler(Formatter formatter)
formatter - the formatter
public FileHandler(Formatter formatter,
File file)
throws FileNotFoundException
formatter - the formatterfile - the file
FileNotFoundException - if the file could not be found on open
public FileHandler(Formatter formatter,
File file,
boolean append)
throws FileNotFoundException
formatter - the formatterfile - the fileappend - true to append, false to overwrite
FileNotFoundException - if the file could not be found on open
public FileHandler(File file)
throws FileNotFoundException
file - the file
FileNotFoundException - if the file could not be found on open
public FileHandler(File file,
boolean append)
throws FileNotFoundException
file - the fileappend - true to append, false to overwrite
FileNotFoundException - if the file could not be found on open
public FileHandler(String fileName)
throws FileNotFoundException
fileName - the file name
FileNotFoundException - if the file could not be found on open
public FileHandler(String fileName,
boolean append)
throws FileNotFoundException
fileName - the file nameappend - true to append, false to overwrite
FileNotFoundException - if the file could not be found on open| Method Detail |
|---|
public void setAppend(boolean append)
append - true to append, false to overwrite
public void setFile(File file)
throws FileNotFoundException
file - the file
FileNotFoundException - if an error occurs opening the filepublic File getFile()
public void setFileName(String fileName)
throws FileNotFoundException
fileName - the file name
FileNotFoundException - if an error occurs opening the file
|
JBoss Log Manager 1.4.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||