-
Notifications
You must be signed in to change notification settings - Fork 6
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
Does this package still need its own implementation of Rotating/Socket/SysLog handlers? #4
Comments
+1 for nuking them from orbit A GitHub search for "zope.server.logger" finds no matches outside of zope.server (and some weird projects that have what looks like the entire zope3 repo import from before it was split into smaller independent packages). |
Awesome. Should I include that in the coverage PR, do you think, or do so in a followup? Right now the coverage branch is just excluding those files from the report. |
Let's do it as a separate step, afterwards. |
Followup question: The 'ResolvingLogger' wrapper for the PythonLogger wants to use an object with a The defaults throughout this codebase and zope.app.server are to use the unresolving logger. Given that, is it even worth keeping around the ResolvingLogger? If so, should the code that implements The code is 100% covered through mock objects, so it's not a question of code coverage anymore, just of usefulness and overhead, both cognitive and runtime, to support that abstraction. |
There may be some more cleanup depending on the decisions about resolvinglogger. Fixes #4.
I will not miss it. I think zope.server/zope.app.server are in pure maintenance mode, in that new applications should be using uwsgi/gunicorn/something else modern, and old applications are unlikely to start using new features. |
OK. Given all that, I think I'll just not touch it. Mostly because I'm lazy. |
There may be some more cleanup depending on the decisions about resolvinglogger. Fixes #4.
It includes them, but it doesn't use them. They are completely untested.
They have been mostly untouched since they were moved here. They appear to date back to Python 2.4 or earlier (surviving log message: "remove support for Python 2.4 and 2.5"). 2.3 is when the standard library logging module was introduced. As of 2.7, the stdlib has analogues to all of these handlers. ZConfig can configure them. The default in
CommonAccessLogger
is to redirect logging to the Python stdlib logging package, andzope.app.server.wsgi
uses that default.zope.app.server
also includes ZConfig directives for configuring the Python logger this winds up using. If the other handlers are used, I'm not finding where.I'm working on test coverage for this package, and I'd prefer not to have to write entire test suites for these things if they're not used. Ideally we'd be able to drop all of them, and perhaps simplify CommonAccessLogger to directly use the stdlib package instead of redirecting through this module's PythonLogger (with some layers to account for un/resolving of addresses). Somewhat less ideally we would be able to implement them on top of the functionality that the stdlib provides.
The text was updated successfully, but these errors were encountered: