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

Structlog #4176

Closed
wants to merge 22 commits into from
Closed

Structlog #4176

wants to merge 22 commits into from

Conversation

nathaniel-may
Copy link
Contributor

@nathaniel-may nathaniel-may commented Nov 1, 2021

Description

Adds structlog to the event module as the new logging library. The existing logger will be removed once all the call sites have been modified to use the event module.

Before:
log-before

After:
log-after

Notable differences:

  • Time is in UTC
  • Log levels are always displayed
  • Output has color

This PR also includes the new logging interface for adapters from #4161. The tests had an issue with Logbook, so I moved the changes here where there is no Logbook to save time.

Todo:

  • visually inspect on a windows machine with and without colorama
  • figure out how to use local time if we want it to match the old time stamps

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change

Nathaniel May and others added 7 commits October 26, 2021 13:57
add event type modeling and fire_event calls
* updated context dir to new structured logging
handle exec info
update log call sites with new event system
graph call sites for structured logging
@cla-bot cla-bot bot added the cla:yes label Nov 1, 2021
@nathaniel-may nathaniel-may changed the base branch from main to feature/structured-logging November 1, 2021 14:21
@nathaniel-may nathaniel-may mentioned this pull request Nov 2, 2021
21 tasks
@nathaniel-may nathaniel-may mentioned this pull request Nov 2, 2021
4 tasks
@nathaniel-may nathaniel-may mentioned this pull request Nov 5, 2021
4 tasks
@nathaniel-may
Copy link
Contributor Author

closing in favor of #4231

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants