Double-Formatted Log Messages

Bug #1164245 reported by Peter Beaman on 2013-04-04
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Akiban Persistit

Bug Description

I'm using the Log4JAdapter with Persistit, but we end up with double-formatted log messages:

[java] 2013-04-04 11:46:46,483 INFO - [main] INFO Akiban Persistit Copyright (c) 2012 Akiban Technologies Inc.

[java] 2013-04-04 11:46:46,543 INFO - [main] INFO Allocating 100 buffers of size 16,384 bytes

[java] 2013-04-04 11:46:46,565 INFO - [main] INFO Opening volume pipeline (/Volumes/UserHD/conor/feinsts/instaslurp/cache/pipeline/pipeline)

[java] 2013-04-04 11:46:46,604 INFO - [main] INFO Recovery done: 0 retained pages, 0 committed transactions, 0 errors

It appears that PersistIt is applying its own log message formatting (which prepends the "[main] INFO") before passing the msg to Log4J, which then applies our formatting, prepending the timestamp and level (e.g. "2013-04-04 11:46:46,604 INFO"). It would be preferable if PersistIt didn't do this :-D

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers