ougai 1.6.6 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/ougai/child_logger.rb +2 -0
- data/lib/ougai/formatters/base.rb +3 -4
- data/lib/ougai/formatters/bunyan.rb +2 -0
- data/lib/ougai/formatters/for_json.rb +2 -0
- data/lib/ougai/formatters/pino.rb +2 -0
- data/lib/ougai/formatters/readable.rb +2 -0
- data/lib/ougai/logger.rb +2 -0
- data/lib/ougai/logging.rb +3 -1
- data/lib/ougai/serializer.rb +2 -0
- data/lib/ougai/serializers/json_jr_jackson.rb +2 -0
- data/lib/ougai/serializers/json_oj.rb +2 -0
- data/lib/ougai/version.rb +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2601a420b579e44bc84f8adf920737cb8b5b55aa17686ec915a5e7a84b30060b
|
4
|
+
data.tar.gz: ad66b15e3c09200f04da050ecd0603bcdba398c4d8772a9a56091b52bfe2300c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcefccb0b74c4cc348afe5189674364cb948f66eea37617ab3ac9ddefa41ca9008d51443bc592c423d34fe7b17ee7c5a7b420adc066189e1f7f014e705247444
|
7
|
+
data.tar.gz: 223ce77c55f3a7a5b043ee56fd37866bd1768d8d7df310369e45feeaede3aa47f223a4a59674a3363045d3f8df4e726c3a8ba29460c3457012671965e9c39a74
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@ Ougai
|
|
2
2
|
=====
|
3
3
|
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/ougai.svg)](https://badge.fury.io/rb/ougai)
|
5
|
-
[![document](https://img.shields.io/badge/document-1.
|
5
|
+
[![document](https://img.shields.io/badge/document-1.7.0-green.svg)](http://www.rubydoc.info/gems/ougai/)
|
6
6
|
[![Build Status](https://travis-ci.org/tilfin/ougai.svg?branch=master)](https://travis-ci.org/tilfin/ougai)
|
7
7
|
[![Code Climate](https://codeclimate.com/github/tilfin/ougai/badges/gpa.svg)](https://codeclimate.com/github/tilfin/ougai)
|
8
8
|
[![Test Coverage](https://codeclimate.com/github/tilfin/ougai/badges/coverage.svg)](https://codeclimate.com/github/tilfin/ougai/coverage)
|
data/lib/ougai/child_logger.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'time'
|
2
4
|
require 'socket'
|
3
5
|
|
@@ -65,10 +67,7 @@ module Ougai
|
|
65
67
|
end
|
66
68
|
|
67
69
|
def default_datetime_format
|
68
|
-
|
69
|
-
f = '%FT%T.%3N'
|
70
|
-
f << (t.utc? ? 'Z' : '%:z')
|
71
|
-
f.freeze
|
70
|
+
"%FT%T.%3N#{(Time.new.utc? ? 'Z' : '%:z')}"
|
72
71
|
end
|
73
72
|
|
74
73
|
def self.parse_new_params(args)
|
data/lib/ougai/logger.rb
CHANGED
data/lib/ougai/logging.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Ougai
|
2
4
|
# Common Logging features
|
3
5
|
module Logging
|
@@ -8,7 +10,7 @@ module Ougai
|
|
8
10
|
include ::Logger::Severity
|
9
11
|
TRACE = -1
|
10
12
|
|
11
|
-
SEV_LABEL = %w(TRACE DEBUG INFO WARN ERROR FATAL ANY)
|
13
|
+
SEV_LABEL = %w(TRACE DEBUG INFO WARN ERROR FATAL ANY)
|
12
14
|
|
13
15
|
def to_label(severity)
|
14
16
|
SEV_LABEL[severity + 1] || 'ANY'
|
data/lib/ougai/serializer.rb
CHANGED
data/lib/ougai/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ougai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toshimitsu Takahashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 2.
|
117
|
+
version: 2.3.0
|
118
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
119
|
requirements:
|
120
120
|
- - ">="
|