paunch/paunch/builder
Bogdan Dobrelya d3c83259bf Fix logging to stdout and file in classes/commands
Fix logging to console to depend on input CLI args. By default, keep
logging to stdout. Make --log-file argument working as well.

Use the input verbosity parameters as a controlling switch for
logs verbosity.

Evaluate log levels as:

  * 1 (WARNING+) - the default log level if neither -v nor --debug used
  * 2 (INFO+)    - applies if -v / --verbose
  * 4 (DEBUG+)   - applies if --debug, dumps command results to file,
    if --log-file is requested.
  * 5 (DEBUG+)   - applies if --debug and -v. Like the latter mode, but
    also dumps the executed commands results to console.

This is needed for better deployments troubleshootng.

Closes-Bug: #1799182

Change-Id: I653ac4cc520e40f3eb4d029e8c99ab482b17a859
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
2018-10-23 18:40:41 +02:00
..
__init__.py Builder object, transform config data to docker arguments 2017-03-31 13:32:07 +13:00
base.py Fix logging to stdout and file in classes/commands 2018-10-23 18:40:41 +02:00
compose1.py Fix logging to stdout and file in classes/commands 2018-10-23 18:40:41 +02:00
podman.py Fix logging to stdout and file in classes/commands 2018-10-23 18:40:41 +02:00