Package org.jboss.logmanager
Class ExtErrorManager
java.lang.Object
java.util.logging.ErrorManager
org.jboss.logmanager.ExtErrorManager
- Direct Known Subclasses:
HandlerErrorManager,OnlyOnceErrorManager,SimpleErrorManager
An extended error manager, which contains additional useful utilities for error managers.
-
Field Summary
Fields inherited from class java.util.logging.ErrorManager
CLOSE_FAILURE, FLUSH_FAILURE, FORMAT_FAILURE, GENERIC_FAILURE, OPEN_FAILURE, WRITE_FAILURE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected ExtLogRecorderrorToLogRecord(String msg, Exception ex, int code) Convert the given error to a log record which can be published to handler(s) or stored.protected StringnameForCode(int code) Get the name corresponding to the given error code.
-
Constructor Details
-
ExtErrorManager
public ExtErrorManager()
-
-
Method Details
-
nameForCode
Get the name corresponding to the given error code.- Parameters:
code- the error code- Returns:
- the corresponding name (not
null)
-
error
- Overrides:
errorin classErrorManager
-
errorToLogRecord
Convert the given error to a log record which can be published to handler(s) or stored. Care should be taken not to publish the log record to a logger that writes to the same handler that produced the error.- Parameters:
msg- the error message (possiblynull)ex- the error exception (possiblynull)code- the error code- Returns:
- the log record (not
null)
-