[bind10-dev] prototype logging module

Jerry jerry.zzpku at gmail.com
Fri May 28 16:32:08 UTC 2010


Dear all,

 

The first version of logging module (python version) has been committed to
branches/trac176,  

and xfrout module has been updated as the first module to use logging
framework (also the code

is ready for review).  

 

Currently, python logging module supports four channels ( null, file, syslog
and stderr) and five

levels (debug, info, warning, error and critical), more levels will be added
later.

 

The logging severity can be reconfigured at the run-time through bindctl,
for the detail, you can 

try it with xfrout.

 

Following are the description of the four channels:

Null channel is the default channel.  A daemon can't use syslog and stderr
channel at the same

time.  SysLog channel is intended for use when the daemon is running as a
background process, 

and stderr channel works for foreground process.  File channel is an
optional, which output log 

messages to a disk file.

 

1.Null channel:

All messages send to the channel will be discarded.

2.File channel:

It can include limitation on the file location, how large the file is
allowed to become , and how 

many versions of the file will be saved each time the file is opened.

File channel has three config options, all of them can be reconfigured at
the run-time.

-log_file : The location of log file. File channel will be closed if the
log_file is not specified.

-max_bytes : The option is used to limit log growth. The default behavior is
not to limit the 

size of the file.

-backupcount : Logger retain that many backup versions of the file by
renaming them when 

opening. No backup versions are kept by default.

3. SysLog channel:

It send log messages to the syslog. If facility is not specified, LOG_USER
is used.  

4. Stderr channel:

All log messages send to the server's standard error stream.

 

Any other suggestions? Such as different debug log level. 

 

I will write a logging requirement document based on this email and publish
it on trac.

 

Thank you.

 

Jerry

 

 

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20100529/358eaf96/attachment.html>


More information about the bind10-dev mailing list