com.hazelcast.logging
Class AbstractLogger

java.lang.Object
  extended by com.hazelcast.logging.AbstractLogger
All Implemented Interfaces:
ILogger

public abstract class AbstractLogger
extends Object
implements ILogger

Abstract ILogger implementation that provides implementations for the convenience methods like finest,info,warning and severe.


Constructor Summary
AbstractLogger()
           
 
Method Summary
 void finest(String message)
          Logs a message at Level.FINEST.
 void finest(String message, Throwable thrown)
          Logs message with associated throwable information at Level.FINEST.
 void finest(Throwable thrown)
          Logs a throwable at Level.FINEST.
 void info(String message)
          Logs a message at Level.INFO.
 boolean isFinestEnabled()
          Checks if the Level.FINEST is enabled.
 void severe(String message)
          Logs a message at Level.SEVERE.
 void severe(String message, Throwable thrown)
          Logs message with associated throwable information at Level.SEVERE.
 void severe(Throwable thrown)
          Logs a throwable at Level.SEVERE.
 void warning(String message)
          Logs a message at Level.WARNING.
 void warning(String message, Throwable thrown)
          Logs message with associated throwable information at Level.WARNING.
 void warning(Throwable thrown)
          Logs a throwable at Level.WARNING.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.hazelcast.logging.ILogger
getLevel, isLoggable, log, log, log
 

Constructor Detail

AbstractLogger

public AbstractLogger()
Method Detail

finest

public void finest(String message)
Description copied from interface: ILogger
Logs a message at Level.FINEST.

Specified by:
finest in interface ILogger
Parameters:
message - the message to log.

finest

public void finest(String message,
                   Throwable thrown)
Description copied from interface: ILogger
Logs message with associated throwable information at Level.FINEST.

Specified by:
finest in interface ILogger
Parameters:
message - the message to log
thrown - the Throwable associated to the message.

finest

public void finest(Throwable thrown)
Description copied from interface: ILogger
Logs a throwable at Level.FINEST. The message of the Throwable will be the message.

Specified by:
finest in interface ILogger
Parameters:
thrown - the Throwable to log.

isFinestEnabled

public boolean isFinestEnabled()
Description copied from interface: ILogger
Checks if the Level.FINEST is enabled.

Specified by:
isFinestEnabled in interface ILogger
Returns:
true if enabled, false otherwise.

info

public void info(String message)
Description copied from interface: ILogger
Logs a message at Level.INFO.

Specified by:
info in interface ILogger
Parameters:
message - the message to log.

severe

public void severe(String message)
Description copied from interface: ILogger
Logs a message at Level.SEVERE.

Specified by:
severe in interface ILogger
Parameters:
message - the message to log.

severe

public void severe(Throwable thrown)
Description copied from interface: ILogger
Logs a throwable at Level.SEVERE. The message of the Throwable will be the message.

Specified by:
severe in interface ILogger
Parameters:
thrown - the Throwable to log.

severe

public void severe(String message,
                   Throwable thrown)
Description copied from interface: ILogger
Logs message with associated throwable information at Level.SEVERE.

Specified by:
severe in interface ILogger
Parameters:
message - the message to log
thrown - the Throwable associated to the message.

warning

public void warning(String message)
Description copied from interface: ILogger
Logs a message at Level.WARNING.

Specified by:
warning in interface ILogger
Parameters:
message - the message to log.

warning

public void warning(Throwable thrown)
Description copied from interface: ILogger
Logs a throwable at Level.WARNING. The message of the Throwable will be the message.

Specified by:
warning in interface ILogger
Parameters:
thrown - the Throwable to log.

warning

public void warning(String message,
                    Throwable thrown)
Description copied from interface: ILogger
Logs message with associated throwable information at Level.WARNING.

Specified by:
warning in interface ILogger
Parameters:
message - the message to log
thrown - the Throwable associated to the message.


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