
public final class PrintWriterTreeLogger extends AbstractTreeLogger
TreeLogger.HelpInfo, TreeLogger.TypelogLevel, parent| Modifier | Constructor and Description |
|---|---|
|
PrintWriterTreeLogger() |
|
PrintWriterTreeLogger(File logFile) |
|
PrintWriterTreeLogger(PrintWriter out) |
protected |
PrintWriterTreeLogger(PrintWriter out,
String indent) |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractTreeLogger |
doBranch()
Derived classes should override this method to return a branched logger.
|
protected void |
doCommitBranch(AbstractTreeLogger childBeingCommitted,
TreeLogger.Type type,
String msg,
Throwable caught,
TreeLogger.HelpInfo helpInfo)
Derived classes should override this method to actually commit the
specified message associated with this the root of this branch.
|
protected void |
doLog(int indexOfLogEntryWithinParentLogger,
TreeLogger.Type type,
String msg,
Throwable caught,
TreeLogger.HelpInfo helpInfo)
Derived classes should override this method to actually write a log
message.
|
allocateNextChildIndex, branch, commitMyBranchEntryInMyParentLogger, doCommitBranch, doLog, getBranchedIndex, getExceptionName, getMaxDetail, getParentLogger, getStackTraceAsString, isLoggable, log, setMaxDetail, toStringbranch, branch, log, logpublic PrintWriterTreeLogger()
public PrintWriterTreeLogger(PrintWriter out)
public PrintWriterTreeLogger(File logFile) throws IOException
IOExceptionprotected PrintWriterTreeLogger(PrintWriter out, String indent)
protected AbstractTreeLogger doBranch()
AbstractTreeLoggerdoBranch in class AbstractTreeLoggerprotected void doCommitBranch(AbstractTreeLogger childBeingCommitted, TreeLogger.Type type, String msg, Throwable caught, TreeLogger.HelpInfo helpInfo)
AbstractTreeLoggerdoCommitBranch in class AbstractTreeLoggerprotected void doLog(int indexOfLogEntryWithinParentLogger,
TreeLogger.Type type,
String msg,
Throwable caught,
TreeLogger.HelpInfo helpInfo)
AbstractTreeLoggerAbstractTreeLogger.isLoggable(TreeLogger.Type) will have already
been called.doLog in class AbstractTreeLoggerCopyright © 2018. All rights reserved.