java - Hibernate System.err console logging -
hibernate appears logging normal information system.err
. few examples are:
system.err: sep 03, 2013 10:41:55 org.hibernate.annotations.common.version <clinit> system.err: sep 03, 2013 10:41:55 org.hibernate.version logversion system.err: sep 03, 2013 10:41:55 org.hibernate.cfg.environment <clinit> system.err: sep 03, 2013 10:41:55 org.hibernate.cfg.environment buildbytecodeprovider system.err: sep 03, 2013 10:42:02 org.hibernate.tool.hbm2ddl.tablemetadata <init>
there 70 of these in total. logging setup follows:
log4j-over-slf4j.jar slf4j-api.jar slf4j-simple-1.7.5.jar
i know slf4j-simple, per slf4j manual, "outputs events system.err. messages of level info , higher printed."
knowing this, set org.slf4j.simplelogger.logfile
system property system.out
specified in simplelogger docs.
this didn't change behavior, however, , still getting 70+ hibernate system.err logs.
is there way configure hibernate not output system.err
? problem these system.err
messages being interpreted warns while informational messages.
now hibernate 4.x uses jboss logging causing issue. this thread helped , solution set system property org.jboss.logging.provider=slf4j
.
this enabled slf4j-simple
pick of hibernate system.err
outputs. using system property mentioned in original thread change system.err
outputs system.out
.
Comments
Post a Comment