Rails-logger-ext is a project mainly written in Ruby, based on the WTFPL license.
a simple gem for adding a few methods to the rails logger so i don't have to keep adding the same code to every project. tested with rails 2.3.5 and 3.0.1.
this is a simple gem for adding a few methods to the rails logger so i don't have to keep adding the same code to every project. tested with rails 2.3.5 and 3.0.1.
Rails.logger.pp(request)
Started GET "/" for 127.0.0.1 at Thu Nov 18 16:45:26 -0800 2010
Processing by WelcomeController#index as HTML
#<ActionDispatch::Request:0x1033e3628
@env=
{"action_dispatch.request.formats"=>
[#<Mime::Type:0x101f063b8
@string="text/html",
@symbol=:html,
...
Rails.logger.achtung!("hello")
Started GET "/" for 127.0.0.1 at Thu Nov 18 16:46:41 -0800 2010
Processing by WelcomeController#index as HTML
--------------------------------------------------
--------------------------------------------------
hello
--------------------------------------------------
--------------------------------------------------
Rails.logger.greppable(request.env)
Started GET "/" for 127.0.0.1 at Thu Nov 18 16:47:35 -0800 2010
Processing by WelcomeController#index as HTML
%% - {"action_dispatch.request.formats"=>
%% - [#<Mime::Type:0x101f063b8
%% - @string="text/html",
%% - @symbol=:html,
%% - @synonyms=["application/xhtml+xml"]>],
...
Licensed under WTFPL. See LICENSE.txt for further details.