Package org.glassfish.resources.mail
Class LogOutputStream
java.lang.Object
java.io.OutputStream
org.glassfish.resources.mail.LogOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Direct Known Subclasses:
MailLogOutputStream
Capture output lines and send them to the system error log.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLogOutputStream(String facility) Log to the specified facility at the default FINE level.LogOutputStream(String facility, Level level) Log to the specified facility at the specified level. -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
Field Details
-
logger
-
level
-
-
Constructor Details
-
LogOutputStream
Log to the specified facility at the default FINE level. -
LogOutputStream
Log to the specified facility at the specified level.
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
log
Log the specified message. Can be overridden by subclass to do different logging.
-