minato_logger 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minato_logger/formatters/fluent_bit.rb +4 -0
- data/lib/minato_logger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 859615070135916acf598b2b1e40e28a7f04542bff6687c9fc6e5043f1114858
|
4
|
+
data.tar.gz: 657282835e183f25edf4508d28fbdf4363ab0157c622a93c4cac66a0ac8a9537
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|