naparuba/shinken — comment on commit ec6d06f673b2ddf1120f27344fac6a6aadf6054a
File:  line 0
By xkilian:

Would it not be wiser to use a comment facility with levels associated.

There must be standard comment libraries to use (ex. log4python). For example in the Cricket projet (perl) we used a log.pm perl module which exported the Debug, Info, Warn, etc. functions.

This way for example you can do the following, I don't do python so bear with me, this is a perl example.

Debug ("Validate full output from X: $fulloutputvar");
Info ("Validate parameter output from function X: $outputparam");

The log module then takes care to send the output to the appropriate place. (Syslog, text, etc.) Simple and oh so efficient, all you have to do is set the log level at runtime or in the global configuration and bingo. Happy user, happy developer and happy poweruser that can submit better bug reports.

Having print statements in the code is a bad idea. Maybe you already use such a facility and such make more extensive use of it.