Skip to content

kwahu/mongo_db_logger_extensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDbLoggerExtensions
=======================

Usefull examples extending logs information

require mongo_db_logger installed and configured

Example
=======

== Memory Usage - works only in *nix systems

Add to ApplicationController

include MongoDbLogger::MemoryUsage

two paremeters would be added to your logs

'pid'               : 12568
'memory_usage'      : 57

== Active Record Instance Counter

Add to ApplicationController

include MongoDbLogger::InstanceCounter

dictionary with all type of objects would be looks familiar to

'instance_coutner'  : {
                        'Total'     : 13,
                        'User'      : 6,
                        'Post'      : 7
                    }



Copyright (c) 2009 [CS3B Michał Czyż], released under the MIT license

About

Extensions for mongo db logger written by Phil Burrows ( http://github.com/peburrows/mongo_db_logger )

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published