# Configure logging in Spring webapp using slf4j/logback

**URL:** <https://forum.liquibase.org/t/configure-logging-in-spring-webapp-using-slf4j-logback/696>\
**Category:** General Discussion\
**Created:** [August 10, 2010, 1:57pm UTC](https://forum.liquibase.org/t/configure-logging-in-spring-webapp-using-slf4j-logback/696 "2010-08-10T13:57:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkrumlian](https://avatars.discourse-cdn.com/v4/letter/k/7c8e57/32.png) [@kkrumlian](https://forum.liquibase.org/u/kkrumlian)\
**Post date:** [August 10, 2010, 1:57pm UTC](https://forum.liquibase.org/t/configure-logging-in-spring-webapp-using-slf4j-logback/696/1 "2010-08-10T13:57:00Z")

</div>

Hey guys,

I have a spring webapp using liquibase 1.9.x and would like to log with slf4j/logback. An earlier post mentions adding code such as  
[http://liquibase.org/forum/index.php?topic=31.0](http://liquibase.org/forum/index.php?topic=31.0)

LogFactory.getLogger().addHandler(new SLF4JBridgeHandler());

But where do you add this code ? liquibase.spring.SpringLiquibase runs when Spring context is being initialized.

Thank you

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [August 10, 2010, 1:57pm UTC](https://forum.liquibase.org/t/configure-logging-in-spring-webapp-using-slf4j-logback/696/2 "2010-08-10T13:57:00Z")

</div>

I think the best place would be to create your own subclass of SpringLiquibase and override afterPropertiesSet and set in that method, before a call to super.afterPropertiesSet()

Nathan
