-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME
38 lines (22 loc) · 784 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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