Skip to content

Instantly share code, notes, and snippets.

@PickledDragon
Created September 29, 2015 12:19
Show Gist options
  • Save PickledDragon/ee694880e931a26ee0b6 to your computer and use it in GitHub Desktop.
Save PickledDragon/ee694880e931a26ee0b6 to your computer and use it in GitHub Desktop.
#Hibernate logging
# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
# Root logger option
log4j.rootLogger=INFO, file, stdout
# Log everything. Good for troubleshooting
log4j.logger.org.hibernate=INFO
# Log all JDBC parameters
log4j.logger.org.hibernate.type=ALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment