--- CircuitBreaker/src/dk/thoerup/curcuitbreaker/notification/Log4jNotifier.java 2009/10/21 11:13:29 465 +++ miscJava/CircuitBreaker/src/dk/thoerup/circuitbreaker/notification/Log4jNotifier.java 2015/03/20 08:52:49 2448 @@ -1,16 +1,18 @@ -package dk.thoerup.curcuitbreaker.notification; +package dk.thoerup.circuitbreaker.notification; import org.apache.log4j.*; +import dk.thoerup.circuitbreaker.CircuitBreaker; + public class Log4jNotifier implements Notifier { Logger logger = Logger.getLogger(JavaLogNotifier.class.getName()); - public void sendNotification(String breakerName, Event evnt) { + public void sendNotification(CircuitBreaker breaker, Event evnt) { - logger.warn("Circuitbreaker " + breakerName + " : " + evnt.toString()); + logger.warn("Circuitbreaker " + breaker + " : " + evnt.toString()); } }