Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Re : How do I use --logLevel?

$
0
0
The built-in logger for liquibase is fairly basic. It outputs to the console (stderr stream, I think), not to a file. The different levels available are debug, info, warning, severe, and off. I think the default level is 'severe'. So in Spokey's example above, since the difference in commands was just to use --logLevel=severe, there was no difference in output. It is not clear to me why the --logFile=./lb.log option did not result in a file being created. 

Here are the levels and what each one means:
  • off - show no logging at all
  • severe - only show the most severe errors
  • warning - show warnings and severe errors
  • info - show more chatty info level messages, warnings, and severe errors
  • debug - most verbose. Show debug-level messages, chatty info messages, warnings, and severe errors.
If you want to get better logging, there is a plugin that enables the slf4j logging interface, which is far more configurable. Search the web for 'liquibase slf4j' for more details on how to do that. 

Steve Donie
Principal Software Engineer
Datical, Inc. http://www.datical.com/

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>