public class ServletContextTreeLogger extends AbstractTreeLogger
TreeLogger.HelpInfo, TreeLogger.Type
LOG_LINE_COMPARATOR, logLevel, parent
Constructor and Description |
---|
ServletContextTreeLogger(javax.servlet.ServletContext ctx) |
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, getBranchedIndex, getExceptionName, getMaxDetail, getMetricMap, getParentLogger, getStackTraceAsString, isLoggable, log, resetMetricMap, setAmount, setMaxDetail, toString
branch, branch, log, log
public ServletContextTreeLogger(javax.servlet.ServletContext ctx)
protected AbstractTreeLogger doBranch()
AbstractTreeLogger
doBranch
in class AbstractTreeLogger
protected void doCommitBranch(AbstractTreeLogger childBeingCommitted, TreeLogger.Type type, String msg, Throwable caught, TreeLogger.HelpInfo helpInfo)
AbstractTreeLogger
doCommitBranch
in class AbstractTreeLogger
protected void doLog(int indexOfLogEntryWithinParentLogger, TreeLogger.Type type, String msg, Throwable caught, TreeLogger.HelpInfo helpInfo)
AbstractTreeLogger
AbstractTreeLogger.isLoggable(TreeLogger.Type)
will have already
been called.doLog
in class AbstractTreeLogger
Copyright © 2018. All rights reserved.