# Log file empty

**URL:** <https://www.ruby-forum.com/t/log-file-empty/223279>\
**Category:** NGINX\
**Created:** [September 27, 2012, 5:40pm UTC](https://www.ruby-forum.com/t/log-file-empty/223279 "2012-09-27T17:40:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [September 27, 2012, 5:40pm UTC](https://www.ruby-forum.com/t/log-file-empty/223279/1 "2012-09-27T17:40:44Z")

</div>

Dear All

My system is FreeBSD 9 with latest version nginx.

Here is my conf file content:

#user www;  
worker\_processes 1;

#error\_log /var/log/nginx/error.log;

#pid logs/nginx.pid;

events {  
worker\_connections 1024;  
}

The problem is I can not see anything from /var/log/nginx-error.log,  
all error logs outputed to screen directly.

I have tried specify error\_log directory or user account. But same…

Please suggest.

–  
with kind regards

---

<div class="post-metadata">

**Author:** ![Cos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/34f0e0/32.png) [@Cos](https://www.ruby-forum.com/u/Cos)\
**Post date:** [September 27, 2012, 6:07pm UTC](https://www.ruby-forum.com/t/log-file-empty/223279/2 "2012-09-27T18:07:39Z")

</div>

On Sep 27, 2012 11:40 AM, “Cos” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> #error\_log /var/log/nginx/error.log;  
> Have you tried un-commenting the line above?

> I have tried specify error\_log directory or user account. But same..
> 
> Please suggest.
> 
> –  
> with kind regards

Jim O.

---

<div class="post-metadata">

**Author:** ![Cos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/34f0e0/32.png) [@Cos](https://www.ruby-forum.com/u/Cos)\
**Post date:** [September 28, 2012, 9:40am UTC](https://www.ruby-forum.com/t/log-file-empty/223279/3 "2012-09-28T09:40:36Z")

</div>

On Thu, Sep 27, 2012 at 6:06 PM, Jim O. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > #error\_log /var/log/nginx/error.log;
> 
> Have you tried un-commenting the line above?

Yes, as I said. have tried un-comment the lines above to specify user  
and error\_log. nothing changed. If I change error\_log as here uner:

error\_log /var/log/nginx/error.log debug;

The precise debug logs diaplayed to screen but still nothing in log  
files.

> > all error logs outputed to screen directly.
> > 
> > I have tried specify error\_log directory or user account. But same..
> > 
> > Please suggest.
> > 
> > –  
> > with kind regards
> 
> Jim O.

–  
with kind regards
