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

Conversation

andy-maier
Copy link
Member

For details, see the commit message.

@andy-maier andy-maier self-assigned this Feb 20, 2019
@andy-maier andy-maier added this to the 0.7.0 milestone Feb 20, 2019
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 andy-maier merged commit ad210b8 into master Feb 20, 2019
@andy-maier andy-maier deleted the andy/renovate-logging branch February 20, 2019 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant