Glenn Zickert - 2003-03-18

Logged In: YES
user_id=735375

app and app2 are both setting the same layout object.
Because the appenders take ownership of the layout object,
each appender must have its own layout object. This
analysis was confirmed by adding:

log4cpp::Layout* dbLayout = new log4cpp::BasicLayout();
// and changing: app2->setLayout(layout); to
app2->setLayout(dbLayout);

I recommend closure of this problem report.