[Rest2web-develop] rest2web Verbosity
Brought to you by:
mjfoord
From: Fuzzyman <fuz...@vo...> - 2006-04-05 09:24:20
|
Hello all, Just to let you all know that I am most of the way through implementing 'verbosity levels'. All the infrastructure is in place, and I'm starting to go through changing the print statements. I'm implementing three levels of verbosity : -v Verbose (default) Info, Warnings & Action -a Warnings & Actions -w Warnings Only Info is when rest2web scans a new directory, processes a page, guesses an encoding & skips writing a page or copying a file. Actions are when it does something like writing a file or copying a file. Warnings are when a file to be copied is missing, or something like that. Are these levels sufficient ? Should I add an option to the config file to set the verbosity level, as well as the command line switches ? New code should use the 'out' function rather than the print statement, and set the level of the message being sent. If a log file is in use, *everything* is logged - whatever the verbosity level. Even on the lowest verbosity level (-w), the welcome message, rest2web version, and number of files processed is still displayed. Thanks Fuzzyman http://www.voidspace.org.uk/python/index.shtml |