[EMAIL PROTECTED] (Justin Mason) writes: > I'd say the easiest way to do it would be to add a new "-v" (verbose) > switch -- either than or turn info into something that's logged by > default unless the user uses a new "-q" (quiet) switch. Those are the > generic UIs generally used in UNIX utilities for this.
How about --loglevel=info and -l=info for spamd and a "-v" for "spamassassin" and friends? > I'm not fond of the "-Dinfo" special case. It reminds me too much of > the frankly bizarre "-Drbl=-255" incantation. Agreed. > I know you don't like adding new switches, but adding a *special case* to > an existing switch, which takes an entirely different action, is in my > opinion even *more* confusing for users. No, I agree with you in this case. >> I can change the code to set different levels per facility. That's not >> too hard. I'll try to check in a fix this weekend. > > What does this mean? I don't understand what "different levels per > facility" refers to. I meant different levels per logging method. I'm not sure that is needed the command line options might be enough. It's moreso that "spamd" needs different levels than "spamassassin" than that syslog/file needs different levels than stderr. > I like Theo's definition table above, a lot. Could we add that to the POD > as a guideline? ...And where would notice fit in? "man syslog" ;-) Daniel -- Daniel Quinlan http://www.pathname.com/~quinlan/
