I have an application deployed to a jboss server which uses many entityManagers because we handle many customers with one application. So we have one application talking to many DB-s

When I look at the error logs I cann not see which customer happend to find an error and sometimes it is difficult to debug the error because of this.

How is possible to ovverride the writings in the error log and put some custom info for evry log insert? 

This should be possible to achive from the scope of the application because there I have all the information which user is logined etc...

We use :

jboss 5.1
seam 2.1
hibernate
log4j for logging