[vlma-devel] commit: One logger per class. (Adrien Grand )

git version control git at videolan.org
Wed Jun 18 20:09:36 CEST 2008


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Wed Jun 18 20:07:49 2008 +0200| [205c00cc7b187f77ab835e588dde837f966b0eb7]

One logger per class.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=205c00cc7b187f77ab835e588dde837f966b0eb7
---

 .../org/videolan/vlma/notifier/MailNotifier.java   |    3 +++
 .../java/org/videolan/vlma/notifier/Notifier.java  |    6 ------
 2 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/vlma-core/src/main/java/org/videolan/vlma/notifier/MailNotifier.java b/vlma-core/src/main/java/org/videolan/vlma/notifier/MailNotifier.java
index 0ec83ab..a5d4124 100644
--- a/vlma-core/src/main/java/org/videolan/vlma/notifier/MailNotifier.java
+++ b/vlma-core/src/main/java/org/videolan/vlma/notifier/MailNotifier.java
@@ -20,6 +20,7 @@
 
 package org.videolan.vlma.notifier;
 
+import org.apache.log4j.Logger;
 import org.springframework.mail.MailException;
 import org.springframework.mail.javamail.JavaMailSenderImpl;
 import org.springframework.mail.SimpleMailMessage;
@@ -32,6 +33,8 @@ import org.videolan.vlma.VLMa;
  */
 public class MailNotifier extends Notifier {
 
+    public static final Logger logger = Logger.getLogger(MailNotifier.class);
+
     private JavaMailSenderImpl mailSender;
 
     public void setMailSender(JavaMailSenderImpl mailSender) {
diff --git a/vlma-core/src/main/java/org/videolan/vlma/notifier/Notifier.java b/vlma-core/src/main/java/org/videolan/vlma/notifier/Notifier.java
index 04916e8..c88d36a 100644
--- a/vlma-core/src/main/java/org/videolan/vlma/notifier/Notifier.java
+++ b/vlma-core/src/main/java/org/videolan/vlma/notifier/Notifier.java
@@ -20,10 +20,6 @@
 
 package org.videolan.vlma.notifier;
 
-import java.util.Set;
-
-import org.apache.log4j.Logger;
-
 /**
  * A notifier.
  *
@@ -31,8 +27,6 @@ import org.apache.log4j.Logger;
  */
 public abstract class Notifier {
 
-    protected static final Logger logger = Logger.getLogger(Notifier.class);
-
     /**
      * Sends a notification.
      *



More information about the vlma-devel mailing list