Forum: NGINX How to disable nginx logs completely

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A8b5da3407c1d4dc9666ce8ae8214a72?d=identicon&s=25 Asif Ali (Guest)
on 2009-01-05 21:49
(Received via mailing list)
Dear Group,

I have tried unsuccessfully to disable nginx logs completely but looks
like
either there is no option or it doesn't work

Can you please advise on how to disable this completely?

Thanks in advance
regards

Asif
02a35d31be48f389d76abfbb8b39191f?d=identicon&s=25 Joe Aston (Guest)
on 2009-01-05 22:10
(Received via mailing list)
access_log off;

if you were feeling obsessive you could also use

error_log off;
A8b5da3407c1d4dc9666ce8ae8214a72?d=identicon&s=25 Asif Ali (Guest)
on 2009-01-05 22:35
(Received via mailing list)
Thanks!
B06eeb3c664683b78f1bd62a80cd8ca4?d=identicon&s=25 Roxis (Guest)
on 2009-01-05 22:42
(Received via mailing list)
On Monday 05 January 2009, Joe Aston wrote:
> error_log off;

nginx will write to file named 'off'
02a35d31be48f389d76abfbb8b39191f?d=identicon&s=25 Joe Aston (Guest)
on 2009-01-05 22:52
(Received via mailing list)
Sorry. Try this:

error_log /var/log/nginx/error_log crit;

(critical errors only - lowest option available)
D69d23d8e811e8ab2a8593380d6ede63?d=identicon&s=25 Jeff Emminger (jemminger)
on 2009-01-05 23:24
(Received via mailing list)
On Mon, Jan 5, 2009 at 4:43 PM, Joe Aston <joe@joeaston.com> wrote:
> Sorry. Try this:
>
> error_log /var/log/nginx/error_log crit;
>
> (critical errors only - lowest option available)
>

Why not
  error_log /dev/null;
96dfd0f0a8399d3b03feba1e6a562e0a?d=identicon&s=25 Edho P Arief (Guest)
on 2009-01-06 05:06
(Received via mailing list)
On Tue, Jan 6, 2009 at 5:16 AM, jeff emminger <jemminger@gmail.com>
wrote:
>
>

or this?

error_log /dev/null crit;
This topic is locked and can not be replied to.