# Setting logging for Liquibase facade

**URL:** <https://forum.liquibase.org/t/setting-logging-for-liquibase-facade/1071>\
**Category:** General Discussion\
**Created:** [January 19, 2011, 1:24am UTC](https://forum.liquibase.org/t/setting-logging-for-liquibase-facade/1071 "2011-01-19T01:24:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ljnelson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/ljnelson/32/120_2.png) [@ljnelson](https://forum.liquibase.org/u/ljnelson)\
**Post date:** [January 19, 2011, 1:24am UTC](https://forum.liquibase.org/t/setting-logging-for-liquibase-facade/1071/1 "2011-01-19T01:24:00Z")

</div>

I don’t know how to set the Liquibase log level to “severe”.

I investigated, and I see that the Liquibase facade (liquibase.Liquibase) gets its logger by calling LogFactory.getLogger().&nbsp; This, in turn, calls LogFactory.getLogger(“liquibase”).

If you attempt to set the log level of this logger, like this:

final Logger logger = LogFactory.getLogger();  
logger.setLogLevel(“severe”);  
final Liquibase liquibase = new Liquibase(…);

…then it appears that the log level is actually set to debug internally–or at least all kinds of debug information is printed to the log.

I dug around in the source code of DefaultLogger and discovered that it first checks a System property named liquibase.defaultlogger.level.&nbsp; So it would seem that another way to do this would be to simply set this System property to, say, severe, and it should be picked up automatically.&nbsp; I observed the same symptoms, however–lots of debug information in the log.

I’m obviously missing something fundamental here: how does one change the log level for all of liquibase when it is run through the facade class?

Thanks,  
Laird

---

<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:** [January 19, 2011, 1:24am UTC](https://forum.liquibase.org/t/setting-logging-for-liquibase-facade/1071/2 "2011-01-19T01:24:00Z")

</div>

That should be how you set the log level, and it is working for me in my integration tests.&nbsp; I call LogFactory.getLogger().setLevel(“severe”) before calling new Liquibase(…) and I just get severe messages.

Are you using the 2.0 final version?

Nathan

---

<div class="post-metadata">

**Author:** ![ljnelson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/ljnelson/32/120_2.png) [@ljnelson](https://forum.liquibase.org/u/ljnelson)\
**Post date:** [January 19, 2011, 1:24am UTC](https://forum.liquibase.org/t/setting-logging-for-liquibase-facade/1071/3 "2011-01-19T01:24:00Z")

</div>

> _Originally posted by: Nathan_  
> That should be how you set the log level, and it is working for me in my integration tests.&nbsp; I call LogFactory.getLogger().setLevel("severe") before calling new Liquibase(..) and I just get severe messages.
> 
> Are you using the 2.0 final version?
> 
> Nathan

Yes; sorry for the noise; I must have been doing something else (though I can’t think what).&nbsp; It seems to be working now.

L

---

<div class="post-metadata">

**Author:** ![ggb667](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/ggb667/32/783_2.png) [@ggb667](https://forum.liquibase.org/u/ggb667)\
**Post date:** [June 14, 2022, 5:48pm UTC](https://forum.liquibase.org/t/setting-logging-for-liquibase-facade/1071/4 "2022-06-14T17:48:44Z")

</div>

> [@ljnelson](#):
>
> If you attempt to set the log level of this logger, like this:
> 
> final Logger logger = LogFactory.getLogger();  
> logger.setLogLevel(“severe”);

This does not work in 4.0, but is basically what I also need.
