Those 3 levels sound good to me, and I think a config file option would be
redundant.
Andrew
> -----Original Message-----
> From: res...@li...
> [mailto:res...@li...]On Behalf Of
> Fuzzyman
> Sent: Wednesday, April 05, 2006 2:24 AM
> To: Rest2web Dev List
> Subject: [Rest2web-develop] rest2web Verbosity
>
>
> 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
|