From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.8 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id BB55C1F725; Thu, 17 Mar 2016 16:33:38 +0000 (UTC) Date: Thu, 17 Mar 2016 16:33:38 +0000 From: Eric Wong To: Hleb Valoshka <375gnu@gmail.com> Cc: unicorn-public@bogomips.org Subject: Re: ip addresses in log files Message-ID: <20160317163338.GA14862@dcvr.yhbt.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: Hleb Valoshka <375gnu@gmail.com> wrote: > Hello all! > > Simple question I hope. > > What is the simplest way to change log file format, without monkey > patching Rack::CommonLogger? I use clogger (configurable logger) instead: http://clogger.bogomips.org/ > I don't want to see all addresses from X-Forwarded-For. There's also unxf for that: http://bogomips.org/unxf/ but I don't use it as often. There are probably others which are better, too... Disclaimer: I absolutely detest using one project (unicorn, in this case) to promote my other projects, here; so I'll say both clogger and unxf are buggy as hell and will eat all your data for lunch :>