[bind10-dev] Python logging framework proposal
Michael Graff
mgraff at isc.org
Tue May 18 03:34:53 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 2010-05-17 10:19 PM, Jerry.zzchen wrote:
> Hi,all,
>
> Some thoughs about python logging framework:
My comments are inline.
> Logging module works as a library module, so we can put its codes under
> "src/lib/python/isc" directory.
Will the module be anything more than just a simple way to configure the
built-in Python logger?
> Python logging can be configured either by creating loggers, handlers,
> and formatters , or by creating a logging config file. I think it is a
> good choise to configure the logging with a config file.
I cannot really evaluate what we need here, but this seems overly
complicated. I'd be surprised if we have more than:
logger = ISC::Logger.create("application-or-context-name")
logger.error "error message here"
logger.warn "warning here"
logger.info "info message here"
logger.debug "debug message here"
and so on. Why would we need any more flexibility in how logging is
handled?
Before we solve the problem, I think we need to define just what logging
is. I know it seems obvious, but "trace this packet and report all
activity around it" is one form of logging, but is likely out of scope
for what we generally think of as "logging."
Along with logging, alerting is often important. This is where bind 9
fails; we are very good at reporting things to syslog, but we are really
bad at any sort of "scoreboard" type of alarm status or error reporting
that can be polled. Do we want to combine these or not? I would say
not right now, but "is my server healthy?" is a question we should be
able to answer without requiring someone to look through log files.
> I still have one questions:
> Do we need to change the logging configuration at run-time?
Yes.
- --Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkvyCt0ACgkQ+NNi0s9NRJ2/mACfTglvYu50rZtPDZ9DAVwmMCml
79UAoKwdQoVCE0pNvsOqbEiavpV+R5Zr
=G9z+
-----END PGP SIGNATURE-----
More information about the bind10-dev
mailing list