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

Logbook support #8

Merged
merged 43 commits into from
Jan 9, 2024
Merged

Logbook support #8

merged 43 commits into from
Jan 9, 2024

Conversation

koreno
Copy link
Contributor

@koreno koreno commented Aug 27, 2020

No description provided.

- a run-once `initialize` method takes care of it all
- removed `set_width`, `set_coloring`, `set_graphics`
- the env-var `TERM_COLOR_SUPPORT` is no longer checked
- the env-var `EASYPY_LOG_INDENTATION` is no longer checked
- instead of updating `globals()`, update a `G` singleton

logging: deprecate '&' for '|' when using logger.pipe()

Also added docstrings

examples: example for initializing logging

update changelog

units: DataSize - return 'byte' and 'MiB' instead of '1 byte' and '1 MiB'
this improves compatibility with 3rd party tools that dislike the space inside the value, and is more consistent with higher values ('5bytes', '5MiB')

0.4.0 - update changlog and setup.py

logging: refactoring to support logbook

logging: fix ContextLoggerMixin for better compatibility with underlying logging framework:

- moved into a subpackage
- break up ContextLoggerMixin into distinct components
- use .log instead of ._log
- auto-convert '%s' to '{}'-style formatting
- use @[]@ for coloring instead of @{}@
…(#212); Also...

apply_timestamp to exception only if missing
logging: fix ContextLoggerMixin for better compatibility with underlying logging framework:

- moved into a subpackage
- break up ContextLoggerMixin into distinct components
- use .log instead of ._log
- don't use deferred formatting since we don't know if it's '%s' or '{}'
- use @[]@ for coloring instead of @{}@
- removed deprecated locking_lru_cache
- removed 'ignored_keywords' from timecache, in favor of 'key_func'
- bug fix in timecache's default key_func not taking defaults into account
- added support for populating the a timecache
- added support for setting key_func via decorator
@koreno koreno merged commit 4aa6973 into master Jan 9, 2024
@koreno koreno deleted the logbook-support branch January 9, 2024 09:11
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.

1 participant