[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modules
Subject:    Re: [apache-modules] Simple logging questions
From:       Sami Tikka <sami.tikka () f-secure ! com>
Date:       2004-03-31 9:43:39
Message-ID: 406A92CB.70003 () f-secure ! com
[Download RAW message or body]

Dave Fetterman wrote:
> I’m adding logging to my mod, in the form of something lke
> 
> #define LOGDEBUG1(message, arg) ap_log_error(APLOG_MARK, APLOG_DEBUG, 
> APR_SUCCESS, NULL, message, arg);
> 
> When I set the level to be APLOG_DEBUG, I get no output in error_log.  
> When I set to APLOG_ERR, it’s all there.  Funny thing is, I have 
> LogLevel set at debug.  Is there something else I’m missing?
> 
> Plus, what exactly does the fourth argument (of type server_rec) do?  
> Does it direct the function to a server-specific error log?  Sometimes, 
> even, I’m getting logging to the console before child initialization.  
> Afterwards, the logging goes to error_log…

The problem is probably the server_rec being NULL. It seems logging goes 
to stderr if server_rec is NULL.

---------------------------------------------------------------------
To unsubscribe, e-mail: apache-modules-unsubscribe@covalent.net
For additional commands, e-mail: apache-modules-help@covalent.net

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic