Package com.sun.mail.util
Class LogOutputStream
java.lang.Object
java.io.OutputStream
com.sun.mail.util.LogOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Capture output lines and send them to the mail logger.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
Field Details
-
logger
-
level
-
-
Constructor Details
-
LogOutputStream
Log to the specified logger.- Parameters:
logger
- the MailLogger
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
log
Log the specified message. Can be overridden by subclass to do different logging.- Parameters:
msg
- the message to log
-