public final class ViewerServiceTreeLogger extends AbstractTreeLogger
TreeLogger.HelpInfo, TreeLogger.Type
logLevel, parent
Constructor and Description |
---|
ViewerServiceTreeLogger(ViewerServiceClient viewerServiceClient)
Creates a new instance with the given Viewer Service requestor.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractTreeLogger |
doBranch()
Creates a new logger for a branch.
|
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 indexOfLogEntry,
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, toString
branch, branch, log, log
public ViewerServiceTreeLogger(ViewerServiceClient viewerServiceClient)
viewerServiceClient
- An object that can be used to make requests to a
viewer service server.protected AbstractTreeLogger doBranch()
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 indexOfLogEntry, 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.