minato_logger 0.1.4 → 0.1.6

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: 859615070135916acf598b2b1e40e28a7f04542bff6687c9fc6e5043f1114858
4
- data.tar.gz: 657282835e183f25edf4508d28fbdf4363ab0157c622a93c4cac66a0ac8a9537
3
+ metadata.gz: bc08595056bf2962fdd62ec8e3792903ba9d6e6a579602a59ceddb3fb7123983
4
+ data.tar.gz: 7ad053a9c0d7268e8ccf33931934b2529af139d5bd524baf236f2b9115ad1b5e
5
5
  SHA512:
6
- metadata.gz: 429ddbc35b8b3e795a403fa468b9babd55f16eeaf5cd77da5a515c4413bf292edd6126e126be9f690152c948bef679c112a904bb12690b31a7b3412eeabe32b0
7
- data.tar.gz: 13734a275985b7386b9e369c6a331376d65620274037b06d4e81f579efe1c23f93227973d84a3f42fb4557c6ca94b7c5379d7c6b3759fca185cc44e62d88df02
6
+ metadata.gz: 80cb6fa6e98737ba65b8f50e9e9569e22da22c04e088c6f21c2ca9be056df4b13815779db403313d687adf19b23c56e5db727b7b356b80cfa90ad33414c6cf79
7
+ data.tar.gz: '068cd5861307780b408c04e5c4371375d387abe87b023715b4268afdfcc6d096085c65b5ad7ecf07ecbc09ea089f0d3ba08af13c66565edbaa11e4eea9906f4a'
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "active_support/tagged_logging"
4
+ require "json"
4
5
 
5
6
  module MinatoLogger
6
7
  module Formatters
@@ -8,7 +9,8 @@ module MinatoLogger
8
9
  include ActiveSupport::TaggedLogging::Formatter
9
10
 
10
11
  def call(severity, timestamp, _progname, message)
11
- "{\"severity\": \"#{severity}\", \"time\": \"#{timestamp}\", \"msg\": \"#{message}\"}\n"
12
+ log = { severity: severity, time: timestamp, msg: message }.to_json
13
+ "#{log}\n"
12
14
  end
13
15
  end
14
16
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MinatoLogger
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.6"
5
5
  end
data/lib/minato_logger.rb CHANGED
@@ -2,3 +2,4 @@
2
2
 
3
3
  require_relative "minato_logger/version"
4
4
  require_relative "minato_logger/formatters"
5
+ require_relative "minato_logger/logger"
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.4
4
+ version: 0.1.6
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-17 00:00:00.000000000 Z
11
+ date: 2023-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport