unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Ben Lovell <benjamin.lovell@gmail.com>
To: "Dowd, Stephen" <stephen.dowd@emc.com>
Cc: "unicorn-public@bogomips.org" <unicorn-public@bogomips.org>
Subject: Re: Question: How to limit size of log & error files
Date: Fri, 24 Jul 2015 15:05:47 +0100	[thread overview]
Message-ID: <CAFYMY5LtKepPzpfrMOJF1B32s7q78iXNoZ4PDYzsyfU7w-_yXQ@mail.gmail.com> (raw)
In-Reply-To: <65EB80B5926DCC4DA6C21AEC11827B7B4C01DE74@MX108CL01.corp.emc.com>

On 24 July 2015 at 14:54, Dowd, Stephen <stephen.dowd@emc.com> wrote:

> I'd like to control the size and on disk layout of the unicorn error and
> output logs.   Basically I want ruby Logger like functionality where I can
> specify a fixed # of rolling logs each of which is limited to # mb in
> size.   Not sure how to do this in unicorn.rb.
>
> My unicorn.conf file has basically the defaults, with the exception of:
>
> Stderr_path "/log/unicorn/stderr.log"
> Stdout_path "/log/unicorn/stdout.log"
>
>
> These files will grow to the point where the disk becomes full at which
> point we begin to see failures.
>
>
> Thanks in advance...
>
> Steve
>

It's right there in the docs:
http://unicorn.bogomips.org/examples/logrotate.conf

Cheers,
Ben


  reply	other threads:[~2015-07-24 17:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-24 13:54 Question: How to limit size of log & error files Dowd, Stephen
2015-07-24 14:05 ` Ben Lovell [this message]
2015-07-24 14:28 ` Hleb Valoshka
2015-07-24 17:13 ` Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/unicorn/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFYMY5LtKepPzpfrMOJF1B32s7q78iXNoZ4PDYzsyfU7w-_yXQ@mail.gmail.com \
    --to=benjamin.lovell@gmail.com \
    --cc=stephen.dowd@emc.com \
    --cc=unicorn-public@bogomips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).