unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / Atom feed
* ip addresses in log files
@ 2016-03-17 14:46 Hleb Valoshka
  2016-03-17 16:33 ` Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Hleb Valoshka @ 2016-03-17 14:46 UTC (permalink / raw)
  To: unicorn-public

Hello all!

Simple question I hope.

What is the simplest way to change log file format, without monkey
patching Rack::CommonLogger?

I don't want to see all addresses from X-Forwarded-For.

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ip addresses in log files
  2016-03-17 14:46 ip addresses in log files Hleb Valoshka
@ 2016-03-17 16:33 ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2016-03-17 16:33 UTC (permalink / raw)
  To: Hleb Valoshka; +Cc: unicorn-public

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-17 14:46 ip addresses in log files Hleb Valoshka
2016-03-17 16:33 ` Eric Wong

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:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.unicorn
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.unicorn

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

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