coralogix_logger 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33d4b04dd5a32ddbf3a921570840c0eebc228db9
|
|
4
|
+
data.tar.gz: 9f3896706dc40ff4c4be1713a824a3d8fb9a5f3f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bc3303b03fed48b00245d287202f8d8b39499956def7860c877b3c794fde2f8300864f3c6c61ddb1bd260f905ad2e93565a4b11a8029a10ed14e7cd6323b7144
|
|
7
|
+
data.tar.gz: f0f4adea6df2d07555c70cc374fc54b2bd67a5f3fb20cd9ea3b5ce43acc556aba8c2f0cd7b45a6e3e7fc6906b906e6fb44e98fa7013eb415fb4432b37fb67606
|
data/README.md
CHANGED
|
@@ -76,8 +76,14 @@ You must provide the following four variables when creating a Coralogix logger i
|
|
|
76
76
|
## Ruby on Rails
|
|
77
77
|
|
|
78
78
|
1. Currently the coralogix SDK supports Rails version >= 4
|
|
79
|
-
2.
|
|
80
|
-
|
|
79
|
+
2. Add the coralogix gem in the Gemfile:
|
|
80
|
+
|
|
81
|
+
##### Example: Gemfile ####
|
|
82
|
+
gem 'coralogix_logger'
|
|
83
|
+
|
|
84
|
+
3. Run: #####bundle install.####
|
|
85
|
+
4. Create coralogix.rb file under: config/initializers/ folder.
|
|
86
|
+
5. Copy the following content into the file. Replace the constants with your values:
|
|
81
87
|
|
|
82
88
|
##### Example: Rails configuration ####
|
|
83
89
|
require 'coralogix_logger'
|
|
@@ -90,7 +96,7 @@ You must provide the following four variables when creating a Coralogix logger i
|
|
|
90
96
|
coralogix_logger = Coralogix::CoralogixLogger.get_logger(SUB_SYSTEM)
|
|
91
97
|
Rails.logger.extend(ActiveSupport::Logger.broadcast(coralogix_logger))
|
|
92
98
|
|
|
93
|
-
|
|
99
|
+
6. Now you can use your Rails logger as usual:
|
|
94
100
|
|
|
95
101
|
##### Example: Rails usage ####
|
|
96
102
|
Rails.logger.info "Hello World from Rails!"
|