Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Bodacious/loggers_galore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: This Rails 2 plugin is no longer maintained

LoggersGalore

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

Example

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.

All feedback welcome: dr_gavin@hotmail.com

Copyright (c) 2009 Gavin Morrice, released under the MIT license

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages