basically I'd like to re-direct the fprintf function..
to allow me a little more control of error messages.
the idea is simple, write a new function
flogf( "a format string - %s %d %c \n", var1, var2,... );
then define flogf to pass these variables through and write to either stderr, to a file, or both depending on the configuration...
Does anyone have an example to illustrate how this is done?