printf() vs fprintf()
Gyepi SAM
gyepi at praxis-sw.com
Wed Sep 25 03:21:59 CEST 2002
On Tue, Sep 24, 2002 at 06:30:31PM -0400, David Relson wrote:
> At 04:01 PM 9/24/02, Zack Weinberg wrote:
> >$ bogofilter [args] 2>&1 | grep ...
> >
> >zw
>
> True, I could do that. Howeveer, there seems to be a mismatch between
> message types and currently available destinations. As output classes
> there are: normal, debug, and error. As destinations there are stdout and
> stderr. Prior to today, normal and debug messages generally went to stdout
> and error messages to stderr. Now, a group of debug messages are going to
> stderr. I would prefer having error messages and only error messages going
> to stderr.
OK.
What if we prefix error messages with 'Error: ' and all others with 'Message:' or 'Debug: '?
The can be done easily with a set of wrapper functions.
Then you can grep for classes of messages too.
-Gyepi
More information about the bogofilter-dev
mailing list