-
Recent Posts
Recent Comments
Archives
- November 2015
- December 2014
- November 2014
- October 2014
- July 2014
- June 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- April 2013
- February 2013
- January 2013
- December 2012
- November 2012
- September 2012
- August 2012
- July 2012
- June 2012
- April 2012
- March 2012
- January 2012
- December 2011
- October 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
Categories
- Android
- Ant
- appender
- appender configuration
- Bash
- Collections
- Cucumber
- CXF
- Ehcache
- Git
- Glassfish
- hamcrest
- hibernate
- hibernate logging
- HTML
- IE
- Integration Tests
- IntelliJ
- Java
- javascript
- JAXB
- jboss
- jboss logging
- jcl-over-slf4j
- Joda-Time
- JQuery
- json
- JSP
- JUnit
- log4j-over-slf4j
- logback
- Logging
- Logging configuration
- Mac
- Maven
- MockMVC
- OS/X
- Servlet Spec
- slf4j
- SOAP
- SpEl
- Spring
- Spring MVC
- Spring Profile
- Spring Security
- SSH
- TDD
- TeamCity
- templating
- Test Driven Development
- Uncategorized
- Unit Tests
- velocity
- vignette
- xml
Meta
Category Archives: logback
Hibernate Logging (e.g. JBOSS logging)
I was getting the following debug logging, even though my logging config said info and above. During my research, I learned that Hibernate is logged via JBoss Logging. It used to require a properties file that denoted which logging implementation … Continue reading
Posted in hibernate, hibernate logging, jboss, jboss logging, jcl-over-slf4j, log4j-over-slf4j, logback, Logging, slf4j
Tagged hibernate, hibernate logging, jboss, jboss logging, jcl-over-slf4j, log4j-over-slf4j, logback, logging, slf4j
1 Comment
Logback log filtering
We wanted to default logging of all messages to warning and above for libraries that we used. We wanted our code to be logged at the info level and above. There was one specific library class that was logging a … Continue reading
Posted in appender, appender configuration, logback, Logging, Logging configuration, slf4j
Tagged appender, appender configuration, logback, logging, logging configuration, slf4j
Leave a comment
SLF4J to the rescue
Logging is needed, but all of the different frameworks makes this a pain. You are trying to research a problem and you have to bounce from log to log to research it. SLF4J has bridge implementations that delegate to SLF4J … Continue reading
Posted in Java, logback, slf4j
Tagged commons, commons logging, jcl, log, log4j, logback, logging, simple logging facade for java, slf4j
Leave a comment
How do you add the user id to the logback log?
Create a filter class to add the value to the MDC: Add the filter class to the web.xml Modify the logback pattern to use the value added by the filter to the current logging thread.
Posted in logback
Leave a comment
How do you have different logging levels per environment
This is such a common problem. You want to have one file that you deploy everywhere, but you want it to behave differently based upon where you deploy it. An example is you want logback to log debug in dev, … Continue reading
Posted in logback
Leave a comment
Logback configuration
Maven has two places for configuration files that need to be deployed to the classpath. You need to place a logback configuration file in both. The main logback configuration file is named logback.xml and should be in src/main/resources of your … Continue reading
Posted in logback, Maven
Leave a comment