Package org.glassfish.resources.javamail
Class MailLogOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.glassfish.resources.javamail.LogOutputStream
-
- org.glassfish.resources.javamail.MailLogOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class MailLogOutputStream extends LogOutputStream
Capture JavaMail debug output.
-
-
Field Summary
-
Fields inherited from class org.glassfish.resources.javamail.LogOutputStream
level, logger
-
-
Constructor Summary
Constructors Constructor Description MailLogOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
log(String msg)
All output except detained protocol traces starts with "DEBUG".-
Methods inherited from class org.glassfish.resources.javamail.LogOutputStream
write, write, write
-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
-
-
-
Method Detail
-
log
protected void log(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.- Overrides:
log
in classLogOutputStream
-
-