All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cperez.statsd.errorHandler.LoggingStatsdErrorHandler Maven / Gradle / Ivy

The newest version!
package com.cperez.statsd.errorHandler;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.timgroup.statsd.StatsDClientErrorHandler;

public class LoggingStatsdErrorHandler implements StatsDClientErrorHandler {

	private static final Logger log = LoggerFactory.getLogger(LoggingStatsdErrorHandler.class);

	@Override
	public void handle(Exception e) {
		log.error("Failed to write metric. Exception: " + e.getClass() + ", message: " + e.getMessage());
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy