/[projects]/miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/notification/JavaLogNotifier.java |
Parent Directory | Revision Log
Statistics should be added by composition instead of inheritance
1 | package dk.thoerup.circuitbreaker.notification; |
2 | |
3 | import java.util.logging.Logger; |
4 | |
5 | import dk.thoerup.circuitbreaker.CircuitBreaker; |
6 | import dk.thoerup.circuitbreaker.Event; |
7 | |
8 | public class JavaLogNotifier implements Notifier { |
9 | |
10 | Logger logger = Logger.getLogger(JavaLogNotifier.class.getName()); |
11 | |
12 | public void sendNotification(CircuitBreaker breaker, Event evnt) { |
13 | |
14 | logger.warning("Circuitbreaker " + breaker.getName() + " : " + evnt.toString() ); |
15 | } |
16 | |
17 | } |
ViewVC Help | |
Powered by ViewVC 1.1.20 |