cloud-logging-util 0.0.1.alpha1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6c9b2db95572235d3b9492ecac8eb8cffd37052b29ceef8f2991a7b498314eb7
4
+ data.tar.gz: 3093e30ee8cec899ff7c294db361a5c7ab0388abf280ff0f36b333d39f6e773b
5
+ SHA512:
6
+ metadata.gz: 92935a76936949939c9d5047c14bb3cfc207f4ab6c278135295b836dee830745d0630291d0630b31712cc3d589a4e2291a6a238fe2f052bf1396d372106e4c93
7
+ data.tar.gz: '02437817e6839b6d65bdd21adb2b4287257fbe7c8c0d937ea78da9556c135fbb9044968b2afb60a1183619f32922cd4e9a51bb2290fc9a203f449620e2cbbaf5'
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ## [0.0.1.alpha1] - 2021-10-14
2
+
3
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at koshikawa2009@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in cloud-logging-util.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2021 Kenji Koshikawa
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,74 @@
1
+ # CloudLoggingUtil
2
+
3
+ [![Test](https://github.com/koshilife/cloud-logging-util/workflows/Test/badge.svg)](https://github.com/koshilife/cloud-logging-util/actions?query=workflow%3ATest)
4
+ [![codecov](https://codecov.io/gh/koshilife/cloud-logging-util/branch/master/graph/badge.svg)](https://codecov.io/gh/koshilife/cloud-logging-util)
5
+ [![Gem Version](https://badge.fury.io/rb/cloud-logging-util.svg)](http://badge.fury.io/rb/cloud-logging-util)
6
+ [![license](https://img.shields.io/github/license/koshilife/cloud-logging-util)](https://github.com/koshilife/cloud-logging-util/blob/master/LICENSE.txt)
7
+
8
+ CloudLoggingUtil is a small library to output structured logs in Cloud Logging.
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ ```ruby
15
+ gem 'cloud-logging-util'
16
+ ```
17
+
18
+ And then execute:
19
+
20
+ $ bundle install
21
+
22
+ Or install it yourself as:
23
+
24
+ $ gem install cloud-logging-util
25
+
26
+ ## Usage
27
+
28
+ Insert CloudLoggingUtil::AccessLogging on the head of rack middlewares.
29
+
30
+ ### Rails
31
+
32
+ ```rb
33
+ # config/application.rb
34
+ class Application < Rails::Application
35
+ # setting for Access Logging ($stdout)
36
+ config.middleware.insert_before(0, CloudLoggingUtil::AccessLogging)
37
+
38
+ # setting for Application Logger ($stderr)
39
+ config.logger = ActiveSupport::Logger.new($stderr)
40
+ config.logger.formatter = CloudLoggingUtil::Formatter.new
41
+ config.colorize_logging = false
42
+ end
43
+ ```
44
+
45
+ Middleware check.
46
+
47
+ ```sh
48
+ bundle exec rake middleware
49
+ ```
50
+
51
+ setup.
52
+
53
+ ```rb
54
+ class YourController < ActionController::Base
55
+ prepend_before_action do
56
+ # set trace_id to request_id
57
+ CloudLoggingUtil.setup_trace_id(request.request_id)
58
+ end
59
+ end
60
+ ```
61
+
62
+ More in-depth method documentation can be found at [RubyDoc.info](https://www.rubydoc.info/gems/cloud-logging-util/).
63
+
64
+ ## Contributing
65
+
66
+ Bug reports and pull requests are welcome on GitHub at https://github.com/koshilife/cloud-logging-util. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/koshilife/cloud-logging-util/blob/master/CODE_OF_CONDUCT.md).
67
+
68
+ ## License
69
+
70
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
71
+
72
+ ## Code of Conduct
73
+
74
+ Everyone interacting in the Cloud::Logging::Logger project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/koshilife/cloud-logging-util/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/*_test.rb"]
10
+ end
11
+
12
+ require "rubocop/rake_task"
13
+
14
+ RuboCop::RakeTask.new
15
+
16
+ task default: %i[test rubocop]
data/bin/console ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "cloud-logging-util"
6
+
7
+ require "irb"
8
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
@@ -0,0 +1,151 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "time"
4
+ require "json"
5
+
6
+ require_relative "log_entry"
7
+ require_relative "severity"
8
+
9
+ module CloudLoggingUtil
10
+ # Access Logging Rack Middleware for Cloud Logging
11
+ class AccessLogging
12
+ DEFAULT_PARAMS_PROC = proc do |env, status, headers, _body, began_at|
13
+ now = Time.now
14
+ latency = now.instance_eval { to_i + (usec / 1_000_000.0) } - began_at
15
+ severity = Severity.cast_from_http_status(status)
16
+ http_h = http_request_hash(env, status, headers, latency)
17
+ LogEntry.new(severity, now, nil, nil, trace_id: trace_id(env), additional_hash: http_h).to_hash
18
+ end
19
+
20
+ def initialize(app, **kwargs)
21
+ @app = app
22
+ @io = kwargs[:io] || $stdout
23
+ @params_proc = kwargs[:params_proc] || DEFAULT_PARAMS_PROC
24
+ end
25
+
26
+ def call(env)
27
+ began_at = Time.now.instance_eval { to_i + (usec / 1_000_000.0) }
28
+ status, headers, body = @app.call(env)
29
+ ensure
30
+ params = @params_proc.call(env, status, headers, body, began_at)
31
+ @io.write("#{params.to_json}\n") if @io.respond_to?(:write)
32
+ end
33
+
34
+ def self.trace_id(env)
35
+ env["cloud_logging_util.trace_id"] || env["action_dispatch.request_id"]
36
+ end
37
+
38
+ # refs: https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#httprequest
39
+ def self.http_request_hash(env, status, headers, latency)
40
+ {
41
+ httpRequest: {
42
+ requestMethod: request_method(env),
43
+ requestUrl: request_url(env),
44
+ requestSize: request_size(env),
45
+ status: status,
46
+ responseSize: response_size(env, headers),
47
+ userAgent: user_agent(env),
48
+ remoteIp: remote_ip(env),
49
+ serverIp: server_ip(env),
50
+ referer: referer(env),
51
+ latency: "%0.6fs" % latency,
52
+ cacheLookup: cache_lookup(env),
53
+ cacheHit: cache_hit(env),
54
+ cacheValidatedWithOriginServer: cache_validated_with_origin_server(env),
55
+ cacheFillBytes: cache_fill_bytes(env),
56
+ protocol: protocol(env)
57
+ }
58
+ }
59
+ end
60
+
61
+ def self.request_method(env)
62
+ if env["cloud_logging_util.request_method"].nil?
63
+ env["REQUEST_METHOD"]
64
+ else
65
+ env["cloud_logging_util.request_method"]
66
+ end
67
+ end
68
+
69
+ def self.request_url(env)
70
+ if env["cloud_logging_util.request_url"].nil?
71
+ url = "#{env["rack.url_scheme"]}://#{env["HTTP_HOST"]}#{env["PATH_INFO"]}"
72
+ url += "?#{env["QUERY_STRING"]}" if env["QUERY_STRING"]&.length.to_i.positive?
73
+ url
74
+ else
75
+ env["cloud_logging_util.request_url"].to_s
76
+ end
77
+ end
78
+
79
+ def self.request_size(env)
80
+ if env["cloud_logging_util.request_size"].nil?
81
+ env["CONTENT_LENGTH"] ? env["CONTENT_LENGTH"].to_s : nil
82
+ else
83
+ env["cloud_logging_util.request_size"].to_s
84
+ end
85
+ end
86
+
87
+ def self.response_size(env, headers)
88
+ if env["cloud_logging_util.response_size"].nil?
89
+ headers && headers["Content-Length"] ? headers["Content-Length"].to_s : nil
90
+ else
91
+ env["cloud_logging_util.response_size"].to_s
92
+ end
93
+ end
94
+
95
+ def self.user_agent(env)
96
+ env["cloud_logging_util.user_agent"] || env["HTTP_USER_AGENT"]
97
+ end
98
+
99
+ def self.remote_ip(env)
100
+ env["cloud_logging_util.remote_ip"] || env["X-Forwarded-For"]
101
+ end
102
+
103
+ def self.server_ip(env)
104
+ env["cloud_logging_util.server_ip"] || env["REMOTE_ADDR"]
105
+ end
106
+
107
+ def self.referer(env)
108
+ env["cloud_logging_util.referer"] || env["HTTP_REFERER"]
109
+ end
110
+
111
+ def self.cache_lookup(env)
112
+ if env["cloud_logging_util.cache_lookup"].nil?
113
+ false
114
+ else
115
+ env["cloud_logging_util.cache_lookup"]
116
+ end
117
+ end
118
+
119
+ def self.cache_hit(env)
120
+ if env["cloud_logging_util.cache_hit"].nil?
121
+ false
122
+ else
123
+ env["cloud_logging_util.cache_hit"]
124
+ end
125
+ end
126
+
127
+ def self.cache_validated_with_origin_server(env)
128
+ if env["cloud_logging_util.cache_validated_with_origin_server"].nil?
129
+ false
130
+ else
131
+ env["cloud_logging_util.cache_validated_with_origin_server"]
132
+ end
133
+ end
134
+
135
+ def self.cache_fill_bytes(env)
136
+ if env["cloud_logging_util.cache_fill_bytes"].nil?
137
+ nil
138
+ else
139
+ env["cloud_logging_util.cache_fill_bytes"].to_s
140
+ end
141
+ end
142
+
143
+ def self.protocol(env)
144
+ if env["cloud_logging_util.protocol"].nil?
145
+ env["HTTP_VERSION"]
146
+ else
147
+ env["cloud_logging_util.protocol"]
148
+ end
149
+ end
150
+ end
151
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "logger"
4
+ require_relative "log_entry"
5
+ require_relative "severity"
6
+
7
+ module CloudLoggingUtil
8
+ TRACE_ID_KEY = :cloud_logging_util_trace_id_key
9
+ private_constant :TRACE_ID_KEY
10
+
11
+ def setup_trace_id(trace_id)
12
+ Thread.current[TRACE_ID_KEY] = trace_id
13
+ end
14
+ module_function :setup_trace_id
15
+
16
+ # formatter for Cloud Logging
17
+ class Formatter < ::Logger::Formatter
18
+ def call(severity, time, progname, message)
19
+ entry = LogEntry.new(Severity.cast(severity), time, progname, message, trace_id: trace_id)
20
+ "#{entry.to_hash.to_json}\n"
21
+ end
22
+
23
+ private
24
+
25
+ def trace_id
26
+ Thread.current[TRACE_ID_KEY]
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,63 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CloudLoggingUtil
4
+ # Cloud Logging LogEntry
5
+ # refs: https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry
6
+ class LogEntry
7
+ def initialize(severity, time, progname, message, trace_id: nil, additional_hash: nil)
8
+ @severity = severity
9
+ @time = time
10
+ @progname = progname
11
+ @message = message
12
+ @trace_id = trace_id
13
+ @additional_hash = additional_hash
14
+ end
15
+
16
+ def to_hash
17
+ entry = {}
18
+ entry.merge!(severity_h)
19
+ entry.merge!(time_h)
20
+ entry.merge!(progname_h)
21
+ entry.merge!(message_h)
22
+ entry.merge!(trace_h)
23
+ @additional_hash.respond_to?(:merge) ? entry.merge(@additional_hash) : entry
24
+ end
25
+
26
+ private
27
+
28
+ def severity_h
29
+ return {} if @severity.nil?
30
+
31
+ { severity: @severity }
32
+ end
33
+
34
+ def time_h
35
+ return {} if @time.nil?
36
+ return {} unless @time.respond_to?(:utc) && @time.respond_to?(:strftime)
37
+
38
+ { timestamp: @time.utc.strftime("%FT%T.%NZ") }
39
+ end
40
+
41
+ def progname_h
42
+ return {} if @progname.nil?
43
+
44
+ { progname: @progname }
45
+ end
46
+
47
+ def message_h
48
+ return {} if @message.nil?
49
+ return @message.to_hash if @message.respond_to?(:to_hash)
50
+ return { message: @message } if @message.is_a?(String)
51
+
52
+ { message: @message.inspect }
53
+ end
54
+
55
+ def trace_h
56
+ return {} if @trace_id.nil?
57
+
58
+ {
59
+ "logging.googleapis.com/trace": @trace_id
60
+ }
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CloudLoggingUtil
4
+ # https://cloud.google.com/logging/docs/reference/v2/rest/v2/LogEntry#logseverity
5
+ module Severity
6
+ DEFAULT = "DEFAULT"
7
+ DEBUG = "DEBUG"
8
+ INFO = "INFO"
9
+ NOTICE = "NOTICE"
10
+ WARNING = "WARNING"
11
+ ERROR = "ERROR"
12
+ CRITICAL = "CRITICAL"
13
+ ALERT = "ALERT"
14
+ EMERGENCY = "EMERGENCY"
15
+
16
+ def self.cast(severity)
17
+ case severity.to_s.downcase
18
+ when "debug"
19
+ DEBUG
20
+ when "info"
21
+ INFO
22
+ when "warn"
23
+ WARNING
24
+ when "error"
25
+ ERROR
26
+ when "fatal"
27
+ CRITICAL
28
+ else
29
+ DEFAULT
30
+ end
31
+ end
32
+
33
+ def self.cast_from_http_status(status)
34
+ return ERROR if status.nil?
35
+
36
+ status_int = status.to_s[0..2].to_i
37
+ if status_int < 400
38
+ INFO
39
+ elsif status_int < 500
40
+ WARNING
41
+ else
42
+ ERROR
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CloudLoggingUtil
4
+ VERSION = "0.0.1.alpha1"
5
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "cloud-logging-util/access_logging"
4
+ require_relative "cloud-logging-util/formatter"
5
+ require_relative "cloud-logging-util/log_entry"
6
+ require_relative "cloud-logging-util/severity"
7
+ require_relative "cloud-logging-util/version"
metadata ADDED
@@ -0,0 +1,159 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cloud-logging-util
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1.alpha1
5
+ platform: ruby
6
+ authors:
7
+ - Kenji Koshikawa
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-10-14 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: codecov
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rack-test
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: simplecov
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Provides a simple logging utility for Cloud Logging.
112
+ email:
113
+ - koshikawa2009@gmail.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".rubocop.yml"
119
+ - CHANGELOG.md
120
+ - CODE_OF_CONDUCT.md
121
+ - Gemfile
122
+ - LICENSE.txt
123
+ - README.md
124
+ - Rakefile
125
+ - bin/console
126
+ - bin/setup
127
+ - lib/cloud-logging-util.rb
128
+ - lib/cloud-logging-util/access_logging.rb
129
+ - lib/cloud-logging-util/formatter.rb
130
+ - lib/cloud-logging-util/log_entry.rb
131
+ - lib/cloud-logging-util/severity.rb
132
+ - lib/cloud-logging-util/version.rb
133
+ homepage: https://github.com/koshilife/cloud-logging-util
134
+ licenses:
135
+ - MIT
136
+ metadata:
137
+ homepage_uri: https://github.com/koshilife/cloud-logging-util
138
+ source_code_uri: https://github.com/koshilife/cloud-logging-util
139
+ changelog_uri: https://github.com/koshilife/cloud-logging-util/blob/master/CHANGELOG.md
140
+ post_install_message:
141
+ rdoc_options: []
142
+ require_paths:
143
+ - lib
144
+ required_ruby_version: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ version: 2.6.0
149
+ required_rubygems_version: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">"
152
+ - !ruby/object:Gem::Version
153
+ version: 1.3.1
154
+ requirements: []
155
+ rubygems_version: 3.2.29
156
+ signing_key:
157
+ specification_version: 4
158
+ summary: Provides a simple logging utility for Cloud Logging.
159
+ test_files: []