To log execution details of any command, use the log-file parameter. The log-file parameter sends logging messages of what Liquibase does during runtime to a file.

If you want to set the log level for your log file, you need to specify the log-level along with the log-file parameter. If you don't specify the log-level parameter, the default log value will be severe.

An example of running the log-file parameter

liquibase --log-level=debug --log-file=../the/path/to/my/logs update

An example of running both log-file and output-file parameters

To get the log and output information from a command, use the log-file and output-file parameters simultaneously:

liquibase --output-file=mysnapshot.json --log-level=debug --log-file=liquibase.log snapshot

Related Links