Hi guys,
I am using Seam 2.2.1 with Weblogic 10.3. Has anyone been able to capture hibernate logging in the
admin log file for weblogic? Looks like I have to use log4j for that but I have already implemented
logging for all exception in admin log file as below, so ideally, I would like all hibernate, seam framework
and exception logging of the app in one place, either the admin log file or a log file for the web app
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Observer;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.ScopeType;
import weblogic.logging.NonCatalogLogger;
@Scope(ScopeType.STATELESS)
@Name("org.jboss.seam.async.asynchronousExceptionHandler" )
public class BatchFileTransferExceptionHandler {
private String errorLogPefix = "Exception Auditing... ";
private NonCatalogLogger logger = new NonCatalogLogger(this.getClass().getName());
@Observer({ "org.jboss.seam.async.asynchronousExceptionHandler", "org.jboss.seam.exceptionHandled", "org.jboss.seam.exceptionNotHandled" })
public void handleException( Exception exception ) {
logger.error( errorLogPefix, exception);
}
}
Thanks
Sam