|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terracotta.cluster.TerracottaLogger
public class TerracottaLogger
A ClusterLogger implementation that directs logging messages into the Terracotta logging system, and thereby
into the Terracotta client log files.
| Constructor Summary | |
|---|---|
TerracottaLogger(String name)
Creates a TerracottaLogger implementation whose name ends with the given string. |
|
| Method Summary | |
|---|---|
void |
debug(Object message)
Log a message at the debug level. |
void |
debug(Object message,
Throwable t)
Log a message at the debug level, including the passed Throwable in the message |
void |
error(Object message)
Log a message at the error level. |
void |
error(Object message,
Throwable t)
Log a message at the error level, including the passed Throwable in the message |
void |
fatal(Object message)
Log a message at the fatal level. |
void |
fatal(Object message,
Throwable t)
Log a message at the fatal level, including the passed Throwable in the message |
String |
getName()
Returns the name of this logger. |
void |
info(Object message)
Log a message at the info level. |
void |
info(Object message,
Throwable t)
Log a message at the info level, including the passed Throwable in the message |
boolean |
isDebugEnabled()
Returns true if debug level messages from this logger will be recorded. |
boolean |
isInfoEnabled()
Returns true if info level messages from this logger will be recorded. |
void |
warn(Object message)
Log a message at the warn level. |
void |
warn(Object message,
Throwable t)
Log a message at the warn level, including the passed Throwable in the message |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TerracottaLogger(String name)
The supplied name is prefixed with a fixed value to ensure toolkit loggers are confined within a namespace.
name - logger identifier
NullPointerException - if the supplied name is null| Method Detail |
|---|
public void debug(Object message,
Throwable t)
ClusterLoggerThrowable in the message
debug in interface ClusterLoggermessage - message to logt - associated throwablepublic void debug(Object message)
ClusterLogger
debug in interface ClusterLoggermessage - message to log
public void error(Object message,
Throwable t)
ClusterLoggerThrowable in the message
error in interface ClusterLoggermessage - message to logt - associated throwablepublic void error(Object message)
ClusterLogger
error in interface ClusterLoggermessage - message to log
public void fatal(Object message,
Throwable t)
ClusterLoggerThrowable in the message
fatal in interface ClusterLoggermessage - message to logt - associated throwablepublic void fatal(Object message)
ClusterLogger
fatal in interface ClusterLoggermessage - message to logpublic String getName()
ClusterLogger
getName in interface ClusterLogger
public void info(Object message,
Throwable t)
ClusterLoggerThrowable in the message
info in interface ClusterLoggermessage - message to logt - associated throwablepublic void info(Object message)
ClusterLogger
info in interface ClusterLoggermessage - message to logpublic boolean isDebugEnabled()
ClusterLoggertrue if debug level messages from this logger will be recorded.
isDebugEnabled in interface ClusterLoggertrue if debug logging is enabledpublic boolean isInfoEnabled()
ClusterLoggertrue if info level messages from this logger will be recorded.
isInfoEnabled in interface ClusterLoggertrue if info logging is enabled
public void warn(Object message,
Throwable t)
ClusterLoggerThrowable in the message
warn in interface ClusterLoggermessage - message to logt - associated throwablepublic void warn(Object message)
ClusterLogger
warn in interface ClusterLoggermessage - message to log
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||