| java.lang.Object com.google.gwt.dev.util.log.AbstractTreeLogger
All known Subclasses: com.google.gwt.dev.util.log.ServletContextTreeLogger, com.google.gwt.dev.util.log.TreeItemLogger, com.google.gwt.dev.util.log.PrintWriterTreeLogger,
AbstractTreeLogger | abstract public class AbstractTreeLogger implements TreeLogger(Code) | | Abstract base class for TreeLoggers.
|
Constructor Summary | |
protected | AbstractTreeLogger() The constructor used when creating a top-level logger. |
Method Summary | |
final public synchronized TreeLogger | branch(TreeLogger.Type type, String msg, Throwable caught) Implements branching behavior that supports lazy logging for low-priority
branched loggers. | abstract protected AbstractTreeLogger | doBranch() Derived classes should override this method to return a branched logger. | abstract protected void | doCommitBranch(AbstractTreeLogger childBeingCommitted, TreeLogger.Type type, String msg, Throwable caught) Derived classes should override this method to actually commit the
specified message associated with this the root of this branch. | abstract protected void | doLog(int indexOfLogEntryWithinParentLogger, TreeLogger.Type type, String msg, Throwable caught) Dervied classes should override this method to actually write a log
message. | final public int | getBranchedIndex() | final public AbstractTreeLogger | getParentLogger() | public static String | getStackTraceAsString(Throwable e) | final public synchronized boolean | isLoggable(TreeLogger.Type type) | final public synchronized void | log(TreeLogger.Type type, String msg, Throwable caught) Immediately logs or ignores the specified messages, based on the specified
message type and this logger's settings. | final public synchronized void | setMaxDetail(TreeLogger.Type type) | public String | toString() |
OUT_OF_MEMORY_MSG | final static String OUT_OF_MEMORY_MSG(Code) | | |
indexWithinMyParent | public int indexWithinMyParent(Code) | | |
AbstractTreeLogger | protected AbstractTreeLogger()(Code) | | The constructor used when creating a top-level logger.
|
doBranch | abstract protected AbstractTreeLogger doBranch()(Code) | | Derived classes should override this method to return a branched logger.
|
doCommitBranch | abstract protected void doCommitBranch(AbstractTreeLogger childBeingCommitted, TreeLogger.Type type, String msg, Throwable caught)(Code) | | Derived classes should override this method to actually commit the
specified message associated with this the root of this branch.
|
getBranchedIndex | final public int getBranchedIndex()(Code) | | |
log | final public synchronized void log(TreeLogger.Type type, String msg, Throwable caught)(Code) | | Immediately logs or ignores the specified messages, based on the specified
message type and this logger's settings. If the message is loggable, then
parent branches may be lazily created before the log can take place.
|
setMaxDetail | final public synchronized void setMaxDetail(TreeLogger.Type type)(Code) | | Parameters: type - the log type representing the most detailed level of loggingthat the caller is interested in, or null tochoose the default level. |
|
|