unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: "Dowd, Stephen" <stephen.dowd@emc.com>
To: "unicorn-public@bogomips.org" <unicorn-public@bogomips.org>
Subject: Question:  How to limit size of log & error files
Date: Fri, 24 Jul 2015 13:54:46 +0000	[thread overview]
Message-ID: <65EB80B5926DCC4DA6C21AEC11827B7B4C01DE74@MX108CL01.corp.emc.com> (raw)

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

             reply	other threads:[~2015-07-24 13:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-24 13:54 Dowd, Stephen [this message]
2015-07-24 14:05 ` Question: How to limit size of log & error files Ben Lovell
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=65EB80B5926DCC4DA6C21AEC11827B7B4C01DE74@MX108CL01.corp.emc.com \
    --to=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).