ama_logger 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -0
- data/.rspec +2 -0
- data/.rubocop.yml +22 -0
- data/.simplecov +3 -0
- data/.travis.yml +9 -0
- data/CODEOWNERS +1 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/LICENSE +21 -0
- data/README.md +83 -0
- data/Rakefile +11 -0
- data/ama_logger.gemspec +47 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/ama/logger.rb +40 -0
- data/lib/ama/logger/base.rb +11 -0
- data/lib/ama/logger/formatter/lambda.rb +56 -0
- data/lib/ama/logger/formatter/stringified_hash.rb +35 -0
- data/lib/ama/logger/version.rb +7 -0
- data/lib/ama_logger.rb +3 -0
- metadata +170 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 97f8723f2fd607f2c2a4b6a2f9ecb7c0828f361c
|
4
|
+
data.tar.gz: e35ae18d44bf2f2ad3d863e6608368c7cbe93aa4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 998b0a701d0988acf1bd99bc8392f94eecf233235b38a06c272c02fbc1de6125a9bd93137e37cd15e1aa243a4a1884d3252e17b477e109db6bec50de9482b594
|
7
|
+
data.tar.gz: f6a072cf401c8aa6ae243e709b20c497607f55410239fb21d6b671396f8777fd4871aa016e0c5ffc137a7b8618c3dfaadd7d0c786dc367edad5a16db82309da8
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
AllCops:
|
2
|
+
DisplayCopNames: true
|
3
|
+
TargetRubyVersion: 2.5
|
4
|
+
Exclude:
|
5
|
+
- 'bin/**/*'
|
6
|
+
- 'vendor/**/*'
|
7
|
+
Documentation:
|
8
|
+
Enabled: false
|
9
|
+
Gemspec/RequiredRubyVersion:
|
10
|
+
Enabled: false
|
11
|
+
Metrics/BlockLength:
|
12
|
+
Exclude:
|
13
|
+
- 'spec/**/*'
|
14
|
+
- '*.gemspec'
|
15
|
+
Metrics/LineLength:
|
16
|
+
Max: 130
|
17
|
+
Metrics/MethodLength:
|
18
|
+
Max: 25
|
19
|
+
Metrics/AbcSize:
|
20
|
+
Max: 17
|
21
|
+
Style/Lambda:
|
22
|
+
EnforcedStyle: literal
|
data/.simplecov
ADDED
data/.travis.yml
ADDED
data/CODEOWNERS
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
* @amaabca/red
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at jesse.doyle@ama.ab.ca. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Alberta Motor Association
|
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,83 @@
|
|
1
|
+
# Ama::Logger
|
2
|
+
|
3
|
+
This library implements AMA's standardized log format.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'ama_logger', git: 'git@github.com:amaabca/ama_logger'
|
11
|
+
```
|
12
|
+
|
13
|
+
## Usage
|
14
|
+
|
15
|
+
A default logger instance that writes to `STDOUT` is provided via the `Ama.logger` method:
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
Ama.logger.info(context: context, event_name: 'log.info', metric_name: 'test', metric_value: 1)
|
19
|
+
```
|
20
|
+
|
21
|
+
You can override the default logger instance if you wish:
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
Ama.logger = Ama::Logger.lambda(STDERR, level: Logger::Severity::DEBUG)
|
25
|
+
```
|
26
|
+
|
27
|
+
The default `logger` instance is intended for use with AWS Lambda - it requires a `context` instance (from a [Lambda handler](https://docs.aws.amazon.com/lambda/latest/dg/ruby-context.html)) to be passed as well as any additional data.
|
28
|
+
|
29
|
+
## Formatters
|
30
|
+
|
31
|
+
This library includes the following custom log formatters:
|
32
|
+
|
33
|
+
### Ama::Logger::Formatter::Lambda
|
34
|
+
|
35
|
+
This formatter accepts a Ruby hash as a message and outputs a JSON string.
|
36
|
+
|
37
|
+
The input hash must look like:
|
38
|
+
|
39
|
+
```ruby
|
40
|
+
Ama.logger.info(
|
41
|
+
context: context, # required - the Lambda context instance (https://docs.aws.amazon.com/lambda/latest/dg/ruby-context.html)
|
42
|
+
event_name: 'log.info', # required
|
43
|
+
exception: 'ArgumentError - something broke', # optional - indexed
|
44
|
+
metric_name: 'error:count', # optional - indexed
|
45
|
+
metric_value: 1, # optional - indexed, coerced to integer
|
46
|
+
metric_content: 'error', # optional - indexed, coerced to string
|
47
|
+
details: { message: 'test' } # optional - non-indexed, Hash coerced to string
|
48
|
+
)
|
49
|
+
```
|
50
|
+
|
51
|
+
### Ama::Logger::Formatter::StringifiedHash
|
52
|
+
|
53
|
+
This formatter accepts string message and outputs a JSON string. The formatter is able to filter sensitive data based on the input provided.
|
54
|
+
|
55
|
+
Instances of this formatter accept the following parameters during initialization:
|
56
|
+
|
57
|
+
```ruby
|
58
|
+
Ama::Logger::Formatter::StringifiedHash.new(
|
59
|
+
filters: [:password], # optional - named parameters that will be filtered from output
|
60
|
+
event_name: 'my.event' # optional - mapped to the `eventName` property in JSON output
|
61
|
+
)
|
62
|
+
```
|
63
|
+
|
64
|
+
This formatter is commonly used to filter sensitive data from internal Rails logging mechanisms (i.e. ActiveJob).
|
65
|
+
|
66
|
+
See below for an example to override the ActiveJob logger:
|
67
|
+
|
68
|
+
```ruby
|
69
|
+
ActiveJob::Base.logger = Ama::Logger.stringified_hash(
|
70
|
+
ActiveJob::Base.logger,
|
71
|
+
event_name: 'rails.activejob',
|
72
|
+
filters: Rails.configuration.filter_parameters,
|
73
|
+
progname: 'gatekeeper'
|
74
|
+
)
|
75
|
+
```
|
76
|
+
|
77
|
+
## Contributing
|
78
|
+
|
79
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/amaabca/ama_logger.
|
80
|
+
|
81
|
+
## License
|
82
|
+
|
83
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/ama_logger.gemspec
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
lib = File.expand_path('lib', __dir__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require 'ama/logger/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = 'ama_logger'
|
9
|
+
spec.version = Ama::Logger::VERSION
|
10
|
+
spec.authors = [
|
11
|
+
'Jesse Doyle',
|
12
|
+
'Michael van den Beuken',
|
13
|
+
'Darko Dosenovic',
|
14
|
+
'Zoie Carnegie',
|
15
|
+
'Ruben Estevez'
|
16
|
+
]
|
17
|
+
spec.email = [
|
18
|
+
'jesse.doyle@ama.ab.ca',
|
19
|
+
'michael.vandenbeuken@ama.ab.ca',
|
20
|
+
'darko.dosenovic@ama.ab.ca',
|
21
|
+
'zoie.carnegie@ama.ab.ca',
|
22
|
+
'ruben.estevez@ama.ab.ca'
|
23
|
+
]
|
24
|
+
spec.required_ruby_version = '>= 2.3.1'
|
25
|
+
spec.summary = 'Implementation of AMA\'s standard logging format'
|
26
|
+
spec.description = 'Log formatters and helper classes for the AMA standardized log format'
|
27
|
+
spec.homepage = 'https://github.com/amaabca/ama_logger'
|
28
|
+
spec.license = 'MIT'
|
29
|
+
|
30
|
+
# Specify which files should be added to the gem when it is released.
|
31
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added
|
32
|
+
# into git.
|
33
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
34
|
+
git_files = `git ls-files -z`.split("\x0")
|
35
|
+
git_files.reject { |f| f.match(%r{^(test|spec|features)/}) }
|
36
|
+
end
|
37
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
38
|
+
spec.require_paths = ['lib']
|
39
|
+
|
40
|
+
spec.add_development_dependency 'bundler'
|
41
|
+
spec.add_development_dependency 'factory_bot'
|
42
|
+
spec.add_development_dependency 'pry'
|
43
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
44
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
45
|
+
spec.add_development_dependency 'rubocop', '0.65.0'
|
46
|
+
spec.add_development_dependency 'simplecov'
|
47
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "ama_logger"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/lib/ama/logger.rb
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'logger/base'
|
4
|
+
|
5
|
+
module Ama
|
6
|
+
# global logger instance initialization
|
7
|
+
# usage:
|
8
|
+
#
|
9
|
+
# Ama.logger.info(context: context, event_name: 'test')
|
10
|
+
class << self
|
11
|
+
attr_writer :logger
|
12
|
+
|
13
|
+
def logger
|
14
|
+
@logger ||= Logger.lambda
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
module Logger
|
19
|
+
AGENT_VERSION = "ama_logger:#{Ama::Logger::VERSION}"
|
20
|
+
|
21
|
+
class << self
|
22
|
+
def root
|
23
|
+
Pathname.new(Gem.loaded_specs['ama_logger'].full_gem_path)
|
24
|
+
end
|
25
|
+
|
26
|
+
def lambda(io = STDOUT, *args)
|
27
|
+
::Logger.new(io, *args).tap do |instance|
|
28
|
+
instance.formatter = Ama::Logger::Formatter::Lambda.new
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def stringified_hash(base, opts = {})
|
33
|
+
base.dup.tap do |instance|
|
34
|
+
instance.formatter = Ama::Logger::Formatter::StringifiedHash.new(opts)
|
35
|
+
instance.progname = opts[:progname]
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Ama
|
4
|
+
module Logger
|
5
|
+
module Formatter
|
6
|
+
class Lambda
|
7
|
+
def call(severity, time, _progname, msg = {})
|
8
|
+
invalid_argument!(:msg, Hash, msg) unless msg.is_a?(Hash)
|
9
|
+
|
10
|
+
context = msg.fetch(:context) { missing_argument!(:context) }
|
11
|
+
event_name = msg.fetch(:event_name) { missing_argument!(:event_name) }
|
12
|
+
|
13
|
+
{
|
14
|
+
exception: msg[:exception],
|
15
|
+
eventName: event_name,
|
16
|
+
eventSource: context.invoked_function_arn,
|
17
|
+
eventId: context.aws_request_id,
|
18
|
+
eventAgent: Ama::Logger::AGENT_VERSION,
|
19
|
+
details: details(msg),
|
20
|
+
indexed: indexed(msg),
|
21
|
+
severity: severity,
|
22
|
+
timestamp: time.utc.iso8601
|
23
|
+
}
|
24
|
+
.compact
|
25
|
+
.to_json
|
26
|
+
.concat("\n")
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def details(data = {})
|
32
|
+
data.fetch(:details) { {} }.to_json
|
33
|
+
end
|
34
|
+
|
35
|
+
def indexed(opts = {})
|
36
|
+
data = opts.slice(:metric_name, :metric_value, :metric_content)
|
37
|
+
|
38
|
+
{
|
39
|
+
metricName: data[:metric_name]&.to_s,
|
40
|
+
metricValue: data[:metric_value]&.to_i,
|
41
|
+
metricContent: data[:metric_content]&.to_s
|
42
|
+
}
|
43
|
+
.compact
|
44
|
+
end
|
45
|
+
|
46
|
+
def missing_argument!(name)
|
47
|
+
raise ArgumentError, "must pass the `#{name}` argument"
|
48
|
+
end
|
49
|
+
|
50
|
+
def invalid_argument!(name, klass, value)
|
51
|
+
raise ArgumentError, "expected type `#{klass.inspect}` for argument `#{name}` - got `#{value.inspect}`"
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Ama
|
4
|
+
module Logger
|
5
|
+
module Formatter
|
6
|
+
class StringifiedHash
|
7
|
+
attr_accessor :filters, :regex, :event_name
|
8
|
+
|
9
|
+
def initialize(opts = {})
|
10
|
+
self.filters = opts.fetch(:filters) { [] }
|
11
|
+
.select { |p| p.is_a?(Symbol) || p.is_a?(String) }
|
12
|
+
.map(&:to_s)
|
13
|
+
.join('|')
|
14
|
+
self.regex = /:(?<name>#{filters})=>"(?<value>[^"]*)"/
|
15
|
+
self.event_name = opts.fetch(:event_name) { 'log.rails' }
|
16
|
+
end
|
17
|
+
|
18
|
+
def call(severity, time, progname, msg)
|
19
|
+
{
|
20
|
+
eventName: event_name,
|
21
|
+
eventSource: progname || self.class.name,
|
22
|
+
eventId: SecureRandom.uuid,
|
23
|
+
eventAgent: Ama::Logger::AGENT_VERSION,
|
24
|
+
severity: severity,
|
25
|
+
details: msg.gsub(regex, ':\k<name>=>"[FILTERED]"'),
|
26
|
+
timestamp: time.utc.iso8601
|
27
|
+
}
|
28
|
+
.compact
|
29
|
+
.to_json
|
30
|
+
.concat("\n")
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
data/lib/ama_logger.rb
ADDED
metadata
ADDED
@@ -0,0 +1,170 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ama_logger
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jesse Doyle
|
8
|
+
- Michael van den Beuken
|
9
|
+
- Darko Dosenovic
|
10
|
+
- Zoie Carnegie
|
11
|
+
- Ruben Estevez
|
12
|
+
autorequire:
|
13
|
+
bindir: bin
|
14
|
+
cert_chain: []
|
15
|
+
date: 2019-10-21 00:00:00.000000000 Z
|
16
|
+
dependencies:
|
17
|
+
- !ruby/object:Gem::Dependency
|
18
|
+
name: bundler
|
19
|
+
requirement: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '0'
|
24
|
+
type: :development
|
25
|
+
prerelease: false
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
requirements:
|
28
|
+
- - ">="
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0'
|
31
|
+
- !ruby/object:Gem::Dependency
|
32
|
+
name: factory_bot
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0'
|
45
|
+
- !ruby/object:Gem::Dependency
|
46
|
+
name: pry
|
47
|
+
requirement: !ruby/object:Gem::Requirement
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: '0'
|
52
|
+
type: :development
|
53
|
+
prerelease: false
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - ">="
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: rake
|
61
|
+
requirement: !ruby/object:Gem::Requirement
|
62
|
+
requirements:
|
63
|
+
- - "~>"
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '10.0'
|
66
|
+
type: :development
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '10.0'
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: rspec
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '3.0'
|
80
|
+
type: :development
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - "~>"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '3.0'
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: rubocop
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - '='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 0.65.0
|
94
|
+
type: :development
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - '='
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 0.65.0
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: simplecov
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
108
|
+
type: :development
|
109
|
+
prerelease: false
|
110
|
+
version_requirements: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0'
|
115
|
+
description: Log formatters and helper classes for the AMA standardized log format
|
116
|
+
email:
|
117
|
+
- jesse.doyle@ama.ab.ca
|
118
|
+
- michael.vandenbeuken@ama.ab.ca
|
119
|
+
- darko.dosenovic@ama.ab.ca
|
120
|
+
- zoie.carnegie@ama.ab.ca
|
121
|
+
- ruben.estevez@ama.ab.ca
|
122
|
+
executables: []
|
123
|
+
extensions: []
|
124
|
+
extra_rdoc_files: []
|
125
|
+
files:
|
126
|
+
- ".gitignore"
|
127
|
+
- ".rspec"
|
128
|
+
- ".rubocop.yml"
|
129
|
+
- ".simplecov"
|
130
|
+
- ".travis.yml"
|
131
|
+
- CODEOWNERS
|
132
|
+
- CODE_OF_CONDUCT.md
|
133
|
+
- Gemfile
|
134
|
+
- LICENSE
|
135
|
+
- README.md
|
136
|
+
- Rakefile
|
137
|
+
- ama_logger.gemspec
|
138
|
+
- bin/console
|
139
|
+
- bin/setup
|
140
|
+
- lib/ama/logger.rb
|
141
|
+
- lib/ama/logger/base.rb
|
142
|
+
- lib/ama/logger/formatter/lambda.rb
|
143
|
+
- lib/ama/logger/formatter/stringified_hash.rb
|
144
|
+
- lib/ama/logger/version.rb
|
145
|
+
- lib/ama_logger.rb
|
146
|
+
homepage: https://github.com/amaabca/ama_logger
|
147
|
+
licenses:
|
148
|
+
- MIT
|
149
|
+
metadata: {}
|
150
|
+
post_install_message:
|
151
|
+
rdoc_options: []
|
152
|
+
require_paths:
|
153
|
+
- lib
|
154
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: 2.3.1
|
159
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '0'
|
164
|
+
requirements: []
|
165
|
+
rubyforge_project:
|
166
|
+
rubygems_version: 2.5.2.3
|
167
|
+
signing_key:
|
168
|
+
specification_version: 4
|
169
|
+
summary: Implementation of AMA's standard logging format
|
170
|
+
test_files: []
|