You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.
When I log directly to the RollingLogFileAppender I get output like this:
INFO 2015-04-30 15:24:48,789 1263(ms) INTERNAL.APP.60 Run - APP Started
DEBUG 2015-04-30 15:24:49,039 1513(ms) INTERNAL.APP.60 RunDailyJobs - Looking for Daily jobs that are ready to be run.
DEBUG 2015-04-30 15:24:49,413 1887(ms) INTERNAL.APP.60 RunJobs - Running [0] jobs
DEBUG 2015-04-30 15:24:49,413 1887(ms) INTERNAL.APP.60 RunWeeklyJobs - Looking for Weekly jobs that are ready to be run.
DEBUG 2015-04-30 15:24:49,429 1903(ms) INTERNAL.APP.60 RunJobs - Running [0] jobs
...
INFO 2015-04-30 15:24:49,554 2028(ms) INTERNAL.APP.60 Run - APP Completed
But when I log through ParallelForwardingAppender I seem to lose the last portion of each message. It seems to lose the %-18.18M - %message %newline portion of the conversion pattern (including the newline so all the below really does show up as one line).
This is due to the Fix property being set to FixFlags.Partial in AsyncForwardingAppenderBase. Partial does not include FixFlags.LocationInfo which is what is used for the caller info fields such as method which caused the problem described. This is the same issue as #15. Setting the property to FixFlags.All or FixFlags.Partial | FixFlags.LocationInfo seems to fix the problem. Unfortunately I don't seem to be able to set it via XML config.
Hi @coryflucas, thanks for the information! We should look at providing a way to set this from the config. If I remember correctly, isn't there a perfoamnce hit for using FixFlags.All?
Yes, there is a performance hit because the LocationInfo items are using reflection I believe. An option to override the default would give the user the option to allow the fields to be passed if they were ok with the performance hit.
When I log directly to the RollingLogFileAppender I get output like this:
But when I log through ParallelForwardingAppender I seem to lose the last portion of each message. It seems to lose the
%-18.18M - %message %newline
portion of the conversion pattern (including the newline so all the below really does show up as one line).The appender configuration is:
The text was updated successfully, but these errors were encountered: