minato_logger 0.1.2 → 0.1.4

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: 8f202773d8bf98fd33538e931574bb38998576c5012acbec3cbe4c91f29ac1a1
4
- data.tar.gz: d7857bb715387f25eb762842f919f90188d4c2141de2f760541039d7e1ac60b7
3
+ metadata.gz: 859615070135916acf598b2b1e40e28a7f04542bff6687c9fc6e5043f1114858
4
+ data.tar.gz: 657282835e183f25edf4508d28fbdf4363ab0157c622a93c4cac66a0ac8a9537
5
5
  SHA512:
6
- metadata.gz: b390adbd16c1a7e41981abaf3141356157001c7ed8e50fa4e6ac52ba425b74184839228d970bfae196875efeb694c17f8c600b75222aca01a6536a32fcc704f0
7
- data.tar.gz: c1305abce0c6879bd7e2a7a3fe92f7752baf315af05c8e816008db1335adacdbb8eb8dc0fb2cae6eff1183c4be5006cfe2983f3b94c766d4c5ea98d3f8f2cf16
6
+ metadata.gz: 429ddbc35b8b3e795a403fa468b9babd55f16eeaf5cd77da5a515c4413bf292edd6126e126be9f690152c948bef679c112a904bb12690b31a7b3412eeabe32b0
7
+ data.tar.gz: 13734a275985b7386b9e369c6a331376d65620274037b06d4e81f579efe1c23f93227973d84a3f42fb4557c6ca94b7c5379d7c6b3759fca185cc44e62d88df02
@@ -1,8 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "active_support/tagged_logging"
4
+
3
5
  module MinatoLogger
4
6
  module Formatters
5
7
  class FluentBit < BaseFormatter
8
+ include ActiveSupport::TaggedLogging::Formatter
9
+
6
10
  def call(severity, timestamp, _progname, message)
7
11
  "{\"severity\": \"#{severity}\", \"time\": \"#{timestamp}\", \"msg\": \"#{message}\"}\n"
8
12
  end
@@ -1,11 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "active_support/logger"
4
+ require "active_support/tagged_logging"
4
5
 
5
6
  require_relative "formatters/fluent_bit"
6
7
 
7
8
  module MinatoLogger
8
9
  class Logger < ActiveSupport::Logger
10
+ include ActiveSupport::TaggedLogging
11
+
9
12
  def initialize
10
13
  super($stdout)
11
14
  @formatter = Formatters::FluentBit.new
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MinatoLogger
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minato_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ferreri
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-16 00:00:00.000000000 Z
11
+ date: 2023-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport