[logback-dev] [JIRA] Commented: (LBCLASSIC-175) ILoggingEvent prepareForDeferredProcessing does not include callerDataArray

Torsten Juergeleit (JIRA) noreply-jira at qos.ch
Sat Jan 2 16:58:33 CET 2010

    [ http://jira.qos.ch/browse/LBCLASSIC-175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11483#action_11483 ] 

Torsten Juergeleit commented on LBCLASSIC-175:

> " new Throwable()" is cheap

Sorry, I'm not buying that calling Throwable.fillInStackTrace() for every single logging event is "cheap" (at least not cpu-wise).
And I'm not buying that storing a stack trace within every logging event (whether or not the caller data is calculated later on) is "cheap" (memory-wise, gc-wise) as well.

> ILoggingEvent prepareForDeferredProcessing does not include callerDataArray
> ---------------------------------------------------------------------------
>                 Key: LBCLASSIC-175
>                 URL: http://jira.qos.ch/browse/LBCLASSIC-175
>             Project: logback-classic
>          Issue Type: Bug
>          Components: layout
>            Reporter: Konstantin Alexandrov
>            Assignee: Logback dev list
> I've implement asynchronous file appender, and enqueue events, but %caller pattern can not be used in the case of
> deferred processing becouse caller information is losed. My suggestion is to create Throwable object in prepareForDeferredProcessing 

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