public class FileTree extends Tree
| Constructor and Description |
|---|
FileTree(Level level,
File logFile)
Create a new FileTree instance.
|
FileTree(Level level,
File logFile,
boolean append)
Create a new FileTree instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
createStackElementTag(StackTraceElement element)
Extract the tag which should be used for the message from the
element. |
protected String |
getTag() |
protected boolean |
isLoggeable(Level level)
Return whether a message at
level should be logged. |
protected void |
log(Level level,
String tag,
String message,
Throwable t)
Write a log message to its destination.
|
debug, debug, error, error, fatal, fatal, formatLine, getStackTraceString, info, info, log, log, prepareLog, setDateFormatPattern, trace, trace, warn, warnpublic FileTree(Level level, File logFile, boolean append) throws IOException
IOExceptionpublic FileTree(Level level, File logFile) throws IOException
IOExceptionprotected boolean isLoggeable(Level level)
Treelevel should be logged.isLoggeable in class Treeprotected void log(Level level, String tag, String message, Throwable t)
Treeprotected String createStackElementTag(StackTraceElement element)
Treeelement. By default
this will use the class name without any anonymous class suffixes (e.g., Foo$1
becomes Foo).
Note: This will not be called if a manual tag was specified.
createStackElementTag in class TreeCopyright © 2016. All rights reserved.