contextualized_logs 0.0.4.pre.alpha → 0.0.4.pre.demo
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc3dd605a243cf3b146d502daa6414f4b2db77d606c70b1048b1c1acc7c5795c
|
4
|
+
data.tar.gz: e3b80320095d11e4dae45e14fc9fda13b770d2e87a4f7db02dcd310305e2a87f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc21c7d99c36ba79ce8481979eeb43c8c64fd4ff6de582583d6e1484a3d04183177a0c4fbf1ff0cad580ac1a50a5f995f25d397ee33871e6e5d4b9c10255275a
|
7
|
+
data.tar.gz: 673904df4e4b8d4ff243711313aef179b613e88d8974ed2d56326da91b19f647735bb44b9fa018847f95c11c19eb77fa97316f60594a13ebd279d90c17d553f6
|
@@ -15,9 +15,9 @@ module ContextualizedLogs
|
|
15
15
|
},
|
16
16
|
ddsource: ['ruby']
|
17
17
|
)
|
18
|
-
log.to_json + "\n"
|
18
|
+
# log.to_json + "\n"
|
19
19
|
# for local debug, dump log in JSON pretty format
|
20
|
-
|
20
|
+
JSON.pretty_generate(log) + "\n"
|
21
21
|
end
|
22
22
|
config.controller_default_contextualizer = proc do |controller|
|
23
23
|
ContextualizedController.default_contextualize_request(controller)
|
@@ -22,9 +22,9 @@ Rails.application.configure do
|
|
22
22
|
config.lograge.enabled = true
|
23
23
|
config.colorize_logging = false
|
24
24
|
# We are asking here to log in RAW (which are actually ruby hashes). The Ruby logging is going to take care of the JSON formatting.
|
25
|
-
config.lograge.formatter = Lograge::Formatters::Json.new
|
25
|
+
# config.lograge.formatter = Lograge::Formatters::Json.new
|
26
26
|
# for local debug, dump log in JSON pretty format
|
27
|
-
|
27
|
+
config.lograge.formatter = Lograge::Formatters::PrettyJson.new
|
28
28
|
# keep existing log
|
29
29
|
config.lograge.keep_original_rails_log = false
|
30
30
|
# issue with existing rails logger and prefixing.. logging to different file
|