| java.lang.Object org.cougaar.util.log.LoggerAdapter org.cougaar.util.log.log4j.LoggerImpl
LoggerImpl | class LoggerImpl extends LoggerAdapter (Code) | | Package-private log4j implementation of logger.
This is an log4j based implementation of Logger. One
important note is that when this instance is created it
creates a log4j Logger based on the class passed in. If
subclasses use the same LoggerImpl as the superclass
they will have the same log4j Logger. This may possibly
cause confusion. To avoid this each object can get its own
instance or use its own "classname:method" name.
See Also: org.cougaar.util.log.LoggerFactory |
Constructor Summary | |
public | LoggerImpl(Object obj) Constructor which uses the specified name to form a
log4j Logger. |
Method Summary | |
public boolean | isEnabledFor(int level) | public void | log(int level, String message, Throwable t) | public void | printDot(String dot) Print a dot or other string to System.out such that it is nicely
interleaved with log output to any ConsoleAppenders to
System.out. | public String | toString() |
LoggerImpl | public LoggerImpl(Object obj)(Code) | | Constructor which uses the specified name to form a
log4j Logger.
Parameters: obj - requestor Object requesting this service. |
isEnabledFor | public boolean isEnabledFor(int level)(Code) | | See Also: Logger.isEnabledFor See Also: see interface for notes |
printDot | public void printDot(String dot)(Code) | | Print a dot or other string to System.out such that it is nicely
interleaved with log output to any ConsoleAppenders to
System.out. Such output is always preceded with a standard format
time of the first such output and terminated with a eol before
any logging output or if such output exceeds a certain length. In
theory, we could pipe any output to stderr or stdout through (a
static version of) this method and thereby interleave such
spontaneous output with logging output, but doing so would
require adjusting all ConsoleAppenders to use the original
stdout/stderr to avoid.
|
Methods inherited from org.cougaar.util.log.LoggerAdapter | final public void debug(String message)(Code)(Java Doc) final public void debug(String message, Throwable t)(Code)(Java Doc) final public void detail(String message)(Code)(Java Doc) final public void detail(String message, Throwable t)(Code)(Java Doc) final public void error(String message)(Code)(Java Doc) final public void error(String message, Throwable t)(Code)(Java Doc) final public void fatal(String message)(Code)(Java Doc) final public void fatal(String message, Throwable t)(Code)(Java Doc) final public void info(String message)(Code)(Java Doc) final public void info(String message, Throwable t)(Code)(Java Doc) final public boolean isDebugEnabled()(Code)(Java Doc) final public boolean isDetailEnabled()(Code)(Java Doc) abstract public boolean isEnabledFor(int level)(Code)(Java Doc) final public boolean isErrorEnabled()(Code)(Java Doc) final public boolean isFatalEnabled()(Code)(Java Doc) final public boolean isInfoEnabled()(Code)(Java Doc) final public boolean isShoutEnabled()(Code)(Java Doc) final public boolean isWarnEnabled()(Code)(Java Doc) abstract public void log(int level, String message, Throwable t)(Code)(Java Doc) final public void log(int level, String message)(Code)(Java Doc) final public void shout(String message)(Code)(Java Doc) final public void shout(String message, Throwable t)(Code)(Java Doc) final public void warn(String message)(Code)(Java Doc) final public void warn(String message, Throwable t)(Code)(Java Doc)
|
|
|