|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.logging.Handler
com.quartzdesk.api.agent.log.jul.JulInterceptionHandler<E>
public class JulInterceptionHandler<E>
Implementation of a Java util logging handler that passes the log records to the QuartzDesk JVM agent that intercepts log messages produced by executed jobs.
==== Example logging.properties ==== # Handlers handlers = ..., com.quartzdesk.api.common.log.jul.JulInterceptionHandler # QuartzDesk Agent interception handler # com.quartzdesk.api.agent.log.jul.JulInterceptionHandler.level = ALL # com.quartzdesk.api.agent.log.jul.JulInterceptionHandler.formatter = formatter class # com.quartzdesk.api.agent.log.jul.JulInterceptionHandler.filter = filter class ... ====This implementation is not statically bound to the QuartzDesk JVM Agent API, nor to the domain object API. Therefore it is safe to use this handler on JVMs running without an installed QuartzDesk JVM Agent.
LoggingInterceptorWrapper| Constructor Summary | |
|---|---|
JulInterceptionHandler()
Creates a new JulInterceptionHandler instance. |
|
| Method Summary | |
|---|---|
void |
close()
|
protected LoggingInterceptorWrapper.MessagePriority |
convertLevel2Priority(Level level)
Returns the LoggingInterceptorWrapper.MessagePriority for the specified Log4J level. |
void |
flush()
|
protected Filter |
getFilterProperty(String name,
Filter defaultValue)
Returns the filter instance of the class named by the "name" property. |
protected Formatter |
getFormatterProperty(String name,
Formatter defaultValue)
Returns the formatter instance of the class named by the "name" property. |
protected Level |
getLevelProperty(String name,
Level defaultValue)
Returns the level for this handler named by the "name". |
void |
publish(LogRecord record)
If the QuartzDesk agent's logging interceptor wishes to intercept the specified log record, then this method formats the log record and passes the result to the logging interceptor. |
| Methods inherited from class java.util.logging.Handler |
|---|
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JulInterceptionHandler()
JulInterceptionHandler instance.
| Method Detail |
|---|
public void publish(LogRecord record)
publish in class Handlerrecord - a log record.public void flush()
flush in class Handler
public void close()
throws SecurityException
close in class HandlerSecurityException
protected Level getLevelProperty(String name,
Level defaultValue)
getLevelProperty method in StreamHandler.
name - a logging config property with level name.defaultValue - the default level.
protected Filter getFilterProperty(String name,
Filter defaultValue)
getFilterProperty method in StreamHandler.
name - a logging config property with filter class name.defaultValue - the default filter.
protected Formatter getFormatterProperty(String name,
Formatter defaultValue)
getFormatterProperty method in StreamHandler.
name - a logging config property with formatter class name.defaultValue - the default formatter.
protected LoggingInterceptorWrapper.MessagePriority convertLevel2Priority(Level level)
LoggingInterceptorWrapper.MessagePriority for the specified Log4J level.
level - a Java util logging log level.
LoggingInterceptorWrapper.MessagePriority for the specified Log4J level.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||