E&S CVS Commit: PEAK - Added logging to peak.api. You can now do LOG_INFO('message',component)

pje at eby-sarna.com pje at eby-sarna.com
Mon Oct 21 18:17:00 EDT 2002


Module Name:	PEAK
Committed By:	pje
Date:		Mon Oct 21 22:16:41 UTC 2002

Modified Files:
	PEAK/src/peak/api: __init__.py
	PEAK/src/peak/running: daemons.py logs.py

Log Message:
Added logging to peak.api.  You can now do LOG_INFO('message',component)
and the like.  By default, events must be of PRI_WARNING priority or
higher to be displayed, but you can change this with the 'peak.log_level'
Property on a per-component hierarchical basis.  If no logger utilities
are present in the component hierarchy, or none of the ones present accept
the log event, the event will be dumped to sys.stderr.

Added logging code to Daemons, to emulate the corresponding log calls in
the MetaDaemon package.  Fleshed out logs.Event properties and methods.
Defined a priority system that can be mapped onto syslog, PEP 282
'logging' module methods, and Zope zLOG priorities.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/api/__init__.py.diff?r1=1.16&r2=1.17
http://cvs.eby-sarna.com/PEAK/src/peak/running/daemons.py.diff?r1=1.2&r2=1.3
http://cvs.eby-sarna.com/PEAK/src/peak/running/logs.py.diff?r1=1.1&r2=1.2

To generate a diff of this commit:
cvs rdiff -r1.16 -r1.17 PEAK/src/peak/api/__init__.py
cvs rdiff -r1.2 -r1.3 PEAK/src/peak/running/daemons.py
cvs rdiff -r1.1 -r1.2 PEAK/src/peak/running/logs.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




More information about the source-changes mailing list