Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Java 6, Mac OS X 10.6
Description
Log4JMetricsContext only has synchronized locks to initialize the logger. When they are multiple threads trying to emite metrics, there is a slight possibility that the output of multiple metrics written as one log entry. Synchronized locks should apply for the whole emiteRecord method.