/[projects]/miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/notification/Log4jNotifier.java
ViewVC logotype

Annotation of /miscJava/CircuitBreaker/src/main/java/dk/thoerup/circuitbreaker/notification/Log4jNotifier.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 465 - (hide annotations) (download)
Wed Oct 21 11:13:29 2009 UTC (14 years, 7 months ago) by torben
Original Path: CircuitBreaker/src/dk/thoerup/curcuitbreaker/notification/Log4jNotifier.java
File size: 361 byte(s)
Simplify notifiers
1 torben 409 package dk.thoerup.curcuitbreaker.notification;
2    
3    
4     import org.apache.log4j.*;
5    
6    
7     public class Log4jNotifier implements Notifier {
8    
9     Logger logger = Logger.getLogger(JavaLogNotifier.class.getName());
10    
11     public void sendNotification(String breakerName, Event evnt) {
12 torben 465
13     logger.warn("Circuitbreaker " + breakerName + " : " + evnt.toString());
14 torben 409 }
15    
16     }

  ViewVC Help
Powered by ViewVC 1.1.20