minato_logger 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5688da71cd66c7e29dc5c28004e95ce48e549893d12bf83bce494638c8207479
4
- data.tar.gz: 752d40d916f5b87b43b9d6dd344e088b57adb5451dadc272bdd787e05e691821
3
+ metadata.gz: e49b0aadfd29f877e07ebef29ca1b13167cc22ff7ad8af6e01cb9b055650bb6c
4
+ data.tar.gz: 554b5525f693e2f16c28227214763a0bbec05fe37a2fe3f246b38a9b4938ef11
5
5
  SHA512:
6
- metadata.gz: 46492ebcc67410a9beb5307220dd7c0eca791cc7a42172ab2e890c02b1efd04f2e303b323276baf89a7b7d7cf95a3000185cc223b761fc95830da19e6ce63c85
7
- data.tar.gz: 665bc0520682ad87196148f965644a5c197f22d74298ece7b6c89dfbfc3ed2e8d30894294120c9603f74ec4f74be0d5efb95f2bfcfed1d2313fd493ffba6ff2d
6
+ metadata.gz: b6048cccde3ade9d3a46698709197ea166bcdffa4a1205d4e3a2e2ef9f12fdd205b2d98e7ef5dca33b80c9d8a7f8e10f626e80ca0c8f3b582909e593ca6ce2f3
7
+ data.tar.gz: c3d896474334ffd88de4043ce171140bfaec44c27a724c84f811488748326138642eb195e9639e42640edaa77846c97833e22f5950d9c519c4a6303d88ffe387
@@ -1,10 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "active_support/tagged_logging"
4
+ require "json"
5
+
3
6
  module MinatoLogger
4
7
  module Formatters
5
8
  class FluentBit < BaseFormatter
9
+ include ActiveSupport::TaggedLogging::Formatter
10
+
6
11
  def call(severity, timestamp, _progname, message)
7
- "{\"severity\": \"#{severity}\", \"time\": \"#{timestamp}\", \"msg\": \"#{message}\"}\n"
12
+ log = { severity: severity, time: timestamp, msg: message }.to_json
13
+ "#{log}\n"
8
14
  end
9
15
  end
10
16
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MinatoLogger
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minato_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ferreri