[logback-dev] [JIRA] Created: (LBCORE-132) Provide interface with method prepareForDeferredProcessing()
Torsten Juergeleit (JIRA)
noreply-jira at qos.ch
Sat Jan 2 16:45:33 CET 2010
Provide interface with method prepareForDeferredProcessing()
------------------------------------------------------------
Key: LBCORE-132
URL: http://jira.qos.ch/browse/LBCORE-132
Project: logback-core
Issue Type: Improvement
Reporter: Torsten Juergeleit
Assignee: Logback dev list
Currently both logback event classes (LoggingEvent and AccessEvent) are implementing the method prepareForDeferredProcessing(). To allow calling this method for both event types from within a logback-core appender (e.g. the one suggested in LBCLASSIC-177) this method has to be defined within a logback-core interface.
Additionally the method prepareForDeferredProcessing() should support two behaviors:
1) preparing only the "cheap" stuff like thread name or MDC
2) preparing everything including the "expensive" stuff like caller data -> this would solve LBCLASSIC-175
So how about defining an interface like the following?
package ch.qos.logback.core.spi;
public interface Event {
void prepareForDeferredProcessing(boolean doFullPreparation);
}
Maybe the method getTimeStamp() implemented by both event types could be part of this interface as well.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the logback-dev
mailing list