Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renovate logging #106

Merged
merged 1 commit into from
Feb 20, 2019
Merged

Renovate logging #106

merged 1 commit into from
Feb 20, 2019

Commits on Feb 20, 2019

  1. Renovate logging

    Details:
    
    - Changed the logging so that it can now reasonably be used together
      with other projects that use logging. This is done by
      centralizing the log_init() function in the utils module, and
      by changing it such that the log level is alwqys set, but the
      file handler is set only when a log file is specified. As a result,
      the loggers now propagate to the Python root logger when the
      log_file parameter is not set.
    
      So playbooks using the zhmc modules have two choices:
      - Specify a log file via the log_file parameter
      - Do not specify a log file and configure the Python root
        logger as needed.
    
    - Added log_file support to all modules that did not have it yet.
    
    - Changed the format of log messages from:
        %(asctime)s %(name)s %(message)s
        with the default date format (e.g. 2019-02-20 10:54:26,123)
      To:
        %(asctime)s %(levelname)s %(name)s %(process)d %(message)s
        with the default date format (e.g. 2019-02-20 10:54:26,123)
      to be more in sync with common log formats.
    
    - Removed the unused log() function in the utils module because
      logging is now done directly to Python loggers.
    
    Signed-off-by: Andreas Maier <maiera@de.ibm.com>
    andy-maier committed Feb 20, 2019
    Configuration menu
    Copy the full SHA
    d80c974 View commit details
    Browse the repository at this point in the history