unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / Atom feed
From: Eric Wong <e@80x24.org>
To: Hleb Valoshka <375gnu@gmail.com>
Cc: unicorn-public@bogomips.org
Subject: Re: ip addresses in log files
Date: Thu, 17 Mar 2016 16:33:38 +0000
Message-ID: <20160317163338.GA14862@dcvr.yhbt.net> (raw)
In-Reply-To: <CAAB-KcmJWd1g6_G-JHyCA8uAnuNGA0QTsci2=bGOh0+2rjCmVw@mail.gmail.com>

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:

> 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 :>

      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-17 14:46 Hleb Valoshka
2016-03-17 16:33 ` Eric Wong [this message]

Reply instructions:

You may reply publically 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:

  List information: https://bogomips.org/unicorn/

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

  git send-email \
    --in-reply-to=20160317163338.GA14862@dcvr.yhbt.net \
    --to=e@80x24.org \
    --cc=375gnu@gmail.com \
    --cc=unicorn-public@bogomips.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help

Archives are clonable:
	git clone --mirror https://bogomips.org/unicorn-public
	git clone --mirror http://ou63pmih66umazou.onion/unicorn-public

Example config snippet for mirrors

Newsgroups are available over NNTP:

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git