Double-Formatted Log Messages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Akiban Persistit |
New
|
Undecided
|
Unassigned |
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/
[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