How to change the log level from the CLI when running a Lisk node?

The log level can be changed by passing it as an environment variable to the CLI.
For example, you want to set the log level to debug to see all logs (most often used for debugging purposes).

 LISK_CONSOLE_LOG_LEVEL=debug node dist/index.js

The installation guide to run Lisk Core from source can be found in the Lisk docs.