Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.clustermate.client;
 import  org.slf4j.Logger;
 import  org.slf4j.LoggerFactory;

Base class defined just to allow overriding logging of warning messages, should someone deeply care
public abstract class Loggable
    protected final Logger _logger;
    protected Loggable() {
         = LoggerFactory.getLogger(getClass());
    protected Loggable(Class<?> loggingFor) {
         = LoggerFactory.getLogger(loggingFor);
    public boolean isInfoEnabled() {
        return .isInfoEnabled();
    public void logInfo(String msg) {
    public void logInfo(String msgObject... args) {
    public void logWarn(String msg) {
    public void logWarn(String msgObject... args) {
    public void logWarn(Throwable tString msg) {
    public void logError(String msg) {
    public void logError(String msgObject... args) {
    public void logError(Throwable tString msg) {

Accessor method that should ONLY be called by tests to possibly suppress logging of some entries.
    public Logger getLogger() {
        return ;
New to GrepCode? Check out our FAQ X