org.terracotta.cluster
Interface ClusterLogger

All Known Implementing Classes:
NullTerracottaLogger, TCClusterLoggerAdapter, TerracottaLogger

public interface ClusterLogger

Logging interface implemented by loggers provided by the clustering infrastructure.

Whether or not the output of this logger is routed to a central location for the entire cluster is implementation dependent.

Author:
Geert Bevin

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
 

Method Detail

debug

void debug(Object message)
Log a message at the debug level.

Parameters:
message - message to log

debug

void debug(Object message,
           Throwable t)
Log a message at the debug level, including the passed Throwable in the message

Parameters:
message - message to log
t - associated throwable

info

void info(Object message)
Log a message at the info level.

Parameters:
message - message to log

info

void info(Object message,
          Throwable t)
Log a message at the info level, including the passed Throwable in the message

Parameters:
message - message to log
t - associated throwable

warn

void warn(Object message)
Log a message at the warn level.

Parameters:
message - message to log

warn

void warn(Object message,
          Throwable t)
Log a message at the warn level, including the passed Throwable in the message

Parameters:
message - message to log
t - associated throwable

error

void error(Object message)
Log a message at the error level.

Parameters:
message - message to log

error

void error(Object message,
           Throwable t)
Log a message at the error level, including the passed Throwable in the message

Parameters:
message - message to log
t - associated throwable

fatal

void fatal(Object message)
Log a message at the fatal level.

Parameters:
message - message to log

fatal

void fatal(Object message,
           Throwable t)
Log a message at the fatal level, including the passed Throwable in the message

Parameters:
message - message to log
t - associated throwable

isDebugEnabled

boolean isDebugEnabled()
Returns true if debug level messages from this logger will be recorded.

Returns:
true if debug logging is enabled

isInfoEnabled

boolean isInfoEnabled()
Returns true if info level messages from this logger will be recorded.

Returns:
true if info logging is enabled

getName

String getName()
Returns the name of this logger.

Returns:
name of this logger


Copyright © 2015 Terracotta, Inc.. All Rights Reserved.