Loggers Galore plugin

Plugin details

Loggers Galore allows you to create as many loggers as you require and access them anyplace in your app.

Websitehttp://handyrailstips.com/ Repositorygit://github.com/GavinM/loggers_galore.git Author Gavin Morrice Tags log LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install git://github.com/GavinM/loggers_galore.git

To create a log for sessions and a log for user behavior:

Add a file to /initializers called loggers_galore.rb

In this file you can specify all of the loggers you require like so: Rails.extra_loggers = [:session, :user]

This will create two files in the /log directory called session.log and user.log and add two methods, session_logger and user_logger which can be called anyplace in your app.

All of the usual logger methods apply; debug, info, warn, error, fatal, unknown.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, 8 months ago