betterlog 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/betterlog.gemspec +3 -3
- data/lib/betterlog/global_metadata.rb +1 -0
- data/lib/betterlog/log_event_formatter.rb +4 -1
- data/lib/betterlog/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfdf595cf7daec3b80c23beccd01ef848e25e2c02d90d5b0c3b8599b380501e3
|
4
|
+
data.tar.gz: 6854574b6f78fed6ed4654ffb406190b22ecf11f8b1c0ec99cc82622b678a42f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 876462422afe5f4c32b79c6bc5fa9a9310d43d8c8bcd4edca84b494950f0d59cc5eae5e1f352624875ccd2fb1497a7795f7bbcd40ba23681ba1e94ffe6d7cc27
|
7
|
+
data.tar.gz: 9b5514cffc95723a7331bd9a3183f05e3271fbcaf85e1a813562bb3b4469ac87e8aff57e040264637bbe16bf53d5612a4b70477fb79cae9124613966e72bb2dd
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.0
|
data/betterlog.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: betterlog 1.
|
2
|
+
# stub: betterlog 1.1.0 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "betterlog".freeze
|
6
|
-
s.version = "1.
|
6
|
+
s.version = "1.1.0"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
10
10
|
s.authors = ["betterplace Developers".freeze]
|
11
|
-
s.date = "2023-
|
11
|
+
s.date = "2023-02-10"
|
12
12
|
s.description = "This library provides structure json logging for our rails projects".freeze
|
13
13
|
s.email = "developers@betterplace.org".freeze
|
14
14
|
s.executables = ["betterlog".freeze]
|
@@ -20,12 +20,15 @@ module Betterlog
|
|
20
20
|
m = m.sub(/\s+$/, '')
|
21
21
|
|
22
22
|
timestamp = timestamp.utc.iso8601(3)
|
23
|
-
event = Log::Event.new(
|
23
|
+
event = Log::Event.new({
|
24
24
|
emitter: emitter,
|
25
25
|
timestamp: timestamp,
|
26
26
|
message: m,
|
27
27
|
severity: severity.to_s.downcase,
|
28
28
|
# tags: current_tags,
|
29
|
+
meta: (
|
30
|
+
Sidekiq::Context.current&.symbolize_keys_recursive if defined?(Sidekiq::Context.current)
|
31
|
+
)}.compact
|
29
32
|
)
|
30
33
|
backtrace = m.scan(/^\s*(?:[^:]+):(?:\d+).*$/)
|
31
34
|
if backtrace.size > 1
|
data/lib/betterlog/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: betterlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- betterplace Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|