From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <375gnu@gmail.com> X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Status: No, score=-0.4 required=3.0 tests=AWL,BAYES_00,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS,URIBL_BLOCKED shortcircuit=no autolearn=no version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from mail-vn0-f50.google.com (mail-vn0-f50.google.com [209.85.216.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 8D9D864008D for ; Fri, 24 Jul 2015 14:28:38 +0000 (UTC) Received: by vnk197 with SMTP id 197so9533313vnk.3 for ; Fri, 24 Jul 2015 07:28:37 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.52.130.65 with SMTP id oc1mr8229163vdb.73.1437748117714; Fri, 24 Jul 2015 07:28:37 -0700 (PDT) Received: by 10.31.190.21 with HTTP; Fri, 24 Jul 2015 07:28:37 -0700 (PDT) In-Reply-To: <65EB80B5926DCC4DA6C21AEC11827B7B4C01DE74@MX108CL01.corp.emc.com> References: <65EB80B5926DCC4DA6C21AEC11827B7B4C01DE74@MX108CL01.corp.emc.com> Date: Fri, 24 Jul 2015 17:28:37 +0300 Message-ID: Subject: Re: Question: How to limit size of log & error files From: Hleb Valoshka <375gnu@gmail.com> To: unicorn-public@bogomips.org Content-Type: text/plain; charset=UTF-8 List-Id: On 7/24/15, Dowd, Stephen 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" Create 2 FIFO and forward to syslog.