FileDocCategorySizeDatePackage
MailLogOutputStream.javaAPI DocGlassfish v2 API2652Fri May 04 22:35:08 BST 2007com.sun.enterprise.naming

MailLogOutputStream

public class MailLogOutputStream extends LogOutputStream
Capture JavaMail debug output.

Fields Summary
private static final String
JAVAMAIL_DOMAIN
Constructors Summary
public MailLogOutputStream()


      
	super(JAVAMAIL_DOMAIN, Level.FINE);
    
Methods Summary
protected voidlog(java.lang.String msg)
All output except detained protocol traces starts with "DEBUG". Log protocol traces at lower level. NOTE: protocol trace output can include lines that start with "DEBUG" so this isn't perfect.

	if (msg.startsWith("DEBUG"))
	    logger.log(Level.FINE, msg);
	else
	    logger.log(Level.FINER, msg);