16 Dec 16:21
Re: How to log a variable value? [SOLVED]
Iñaki Baz Castillo <ibc <at> aliax.net>
2009-12-16 15:21:45 GMT
2009-12-16 15:21:45 GMT
El Miércoles, 9 de Diciembre de 2009, Iñaki Baz Castillo escribió: > El Domingo, 6 de Diciembre de 2009, Iñaki Baz Castillo escribió: > > El Sábado, 5 de Diciembre de 2009, Iñaki Baz Castillo escribió: > > > El Sábado, 5 de Diciembre de 2009, Iñaki Baz Castillo escribió: > > > > If not, perhaps I could use $remote_user, but I don't know where > > > > Clogger reads that value from. How could I manually set a value for > > > > $remote_user so Clogger logs it? > > > > > > By inspecting Rack auth files I expect that I just must give value to > > > env["REMOTE_USER"]. > > > > Unfortunatelly it's not valid for me. Clogger requires to have the value > > of env["REMOTE_USER"] already set, so it expects the usage of Rack Auth > > application (which is runned at the beginning). > > > > However I don't use Rack auth, neither other authentication way. My > > server just receives the request with a header like: > > X-Identity: "IBC <sip:ibc <at> aliax.net>" > > so in the log I want to show "sip:ibc <at> aliax.net" (and not the entire > > value of this header). > > > > I build the Rack app by doing the following: > > > > ------------------------- > > > > :Rack::Builder.new do > > > > use ::Clogger, > > > > :logger => ::File.open(XXXXXXXXX, "ab"),(Continue reading)
RSS Feed