log files and stdout

"fred" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <008901c5e3a0$7c416460$0ae0110a@FRED4>
Just a question about the logging mechanism that is annoying me.......

if the configuration has set

log-file="kannel.log"

and you start ./bearerbox -v 0 smskannel2.conf 2>bearer.log &


kannel.log and bearer.log contain the same lines !! I find no use for this duplication ............

is this how its supposed to be ? (or else its because I may have done something by accident to my code!!)

my thinking is if a log-file = named is configured, well thats where all the logging should go, 
except perhaps stderr?   

I am not really clear on what the idea is behind the array of logfiles ? why is it necessary ? etc?

gwlib\log.c 

static struct {
    FILE *file;
    int minimum_output_level;
    char filename[FILENAME_MAX + 1]; /* to allow re-open */
    enum excl_state exclusive;
} logfiles[MAX_LOGFILES];

yeah, I'm reading the code, but it brings me more questions.....it might help
if we knew what the author was thinking of?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.