Default Logging?
    Maxim Dounin 
    mdounin at mdounin.ru
       
    Tue Apr  6 03:22:32 MSD 2010
    
    
  
Hello!
On Mon, Apr 05, 2010 at 05:14:15PM -0300, Tomas Zulberti wrote:
> Hi. I am using nginx version 0.7.65, compiled with wsgi and geoip.
> The configuration tells the access log to save the file on /mnt.
> The problem is that for one that, there is no access log... An example
> of the configuration is as follows:
> 
> server {
>     // ...
>     if (condition 1) {
>     	access_log	/mnt/file.txt
>     	// Other things things
>     }
> 
>     if (condition 2) {
>     	access_log	/mnt/file2.txt
>     	// Other things things 2
>     }
> 
>     if (condition 3) {
>       	// Other things things 3
>     }
> }
> 
> The problem is that when condition 3 happens, it logs the combiend
> data to NGINX_FOLDER/logs/access.log in the combined way... There
> isn't any other access_log (the ones on nginx.conf were deleted). So
> the question is: nginx always log to logs/access.log if there is no
> log?
By default nginx logs to file specified via --http-log-path 
configure argument.  It defaults to logs/access.log under prefix 
in it's turn.
See here for more details:
http://wiki.nginx.org/NginxHttpLogModule
Maxim Dounin
    
    
More information about the nginx
mailing list