1 23 24 package com.sun.enterprise.naming; 25 26 import java.util.logging.*; 27 28 29 32 public class MailLogOutputStream extends LogOutputStream { 33 private static final String JAVAMAIL_DOMAIN = "javax.mail"; 34 35 public MailLogOutputStream() { 36 super(JAVAMAIL_DOMAIN, Level.FINE); 37 } 38 39 46 protected void log(String msg) { 47 if (msg.startsWith("DEBUG")) 48 logger.log(Level.FINE, msg); 49 else 50 logger.log(Level.FINER, msg); 51 } 52 } 53 | Popular Tags |