Bug 58412 - AsyncFileHandler logs package and method name as null.null
Summary: AsyncFileHandler logs package and method name as null.null
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 8
Classification: Unclassified
Component: Catalina (show other bugs)
Version: 8.0.x-trunk
Hardware: All All
: P2 normal (vote)
Target Milestone: ----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-15 18:43 UTC by Felix Schumacher
Modified: 2015-09-18 13:34 UTC (History)
0 users



Attachments
Resolve method and class name before handing the record into the queue (1015 bytes, patch)
2015-09-15 18:43 UTC, Felix Schumacher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Schumacher 2015-09-15 18:43:26 UTC
Created attachment 33110 [details]
Resolve method and class name before handing the record into the queue

When using AsyncFileHandler it sometimes happens, that package and method names are resolved to null, whenn logging.

It is described on stackoverflow http://stackoverflow.com/questions/27117369/generic-java-logger-output-null-null-for-class-and-member-name

The attached patch fixes it in my tests.
Comment 1 Mark Thomas 2015-09-18 13:34:59 UTC
Fixed in trunk and 8.0.x for 8.0.27 onwards.