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

Stdlib Compatibility Layer #11

Open
wearpants opened this issue Apr 2, 2013 · 2 comments
Open

Stdlib Compatibility Layer #11

wearpants opened this issue Apr 2, 2013 · 2 comments
Labels
Milestone

Comments

@wearpants
Copy link
Owner

wearpants commented Apr 2, 2013

A layer that support API compatibility with stdlib logging module for client operations only. The following code should just work:

from twiggy import logging_compat as logging
log = logging.getLogger("oldcode")
log.info("Shh, don't tell")

Also write a logging_compat.hijack() method to inject itself into sys.modules so that no modification to old code is needed at all.

There is no plan to support stlib handlers or formatters.

See here for more details: http://blog.wearpants.org/lognametwiggyinfowhats-new-whats-next

Imported from Bitbucket.

@wearpants
Copy link
Owner Author

This is mostly done in a branch & just needs to be merged.

@wearpants wearpants modified the milestones: 0.5, 0.5 reboot Oct 18, 2017
@wearpants wearpants added bridge and removed bug labels Oct 20, 2017
@wearpants
Copy link
Owner Author

Write a mini-timeline for incorporating stuff from here: https://docs.python.org/3/library/logging.html

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

No branches or pull requests

1 participant