logatron 0.15.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +101 -18
- data/lib/logatron.rb +1 -0
- data/lib/logatron/configuration.rb +20 -4
- data/lib/logatron/logatron.rb +2 -1
- data/lib/logatron/railtie.rb +64 -7
- data/logatron.gemspec +6 -7
- metadata +51 -14
- data/CHANGES.md +0 -114
- data/CODE_OF_CONDUCT.md +0 -13
- data/bin/console +0 -14
- data/bin/setup +0 -7
- data/lib/logatron/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e5369f284a17b4bbb59a303e6af40cefb448db0
|
4
|
+
data.tar.gz: 292b937a1f4f6176ca3b57d44066771e900b3e87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c32023d97fdc7d7f38abbe0c4e1f9b642866dd6cfe92257ad67a2773cdb4fb37cb0e69786266eec748a4fa3faa0599c05d047db72f075606e600308b8e3240b9
|
7
|
+
data.tar.gz: 644283c4460130c661e1bb826453f4723840097810d5044d5054b68ba5fd041b1f55c530deee7a9cc7c7b9093fc90bb07f869e5ec218ad9c1d958a145885fc5f
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -8,18 +8,77 @@ Add this line to your application's Gemfile:
|
|
8
8
|
gem 'logatron'
|
9
9
|
```
|
10
10
|
|
11
|
-
|
11
|
+
If running logatron in rails, you will need to add the following line as well.
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
```ruby
|
14
|
+
gem 'lograge' # needed for rails projects using logatron
|
15
|
+
```
|
16
16
|
|
17
|
-
|
17
|
+
The reason lograge is not included as a transitive dependency automatically via
|
18
|
+
logatron is that lograge is only needed when logatron is used in rails. Lograge
|
19
|
+
includes many rails-ish dependencies that are unnecessary if not running in a
|
20
|
+
rails environment.
|
18
21
|
|
19
22
|
## Usage
|
20
23
|
|
24
|
+
### Configuration in Rails
|
25
|
+
|
26
|
+
The goal: constrain all configuration regarding the logging to go through
|
27
|
+
logatron and not the internals of logatron (such as lograge). Consumers of
|
28
|
+
logatron should not have to know the internals.
|
29
|
+
|
30
|
+
Logatron must be configured before anything else since there can be other
|
31
|
+
configuration dependent upon those values (lograge for sure). This is done by
|
32
|
+
doing that configuration in an initializer file that will be listed first when
|
33
|
+
sorted in that directory alphanumerically. Putting an underscore (`_`) in front
|
34
|
+
of the name typically will move it to the top of the list -
|
35
|
+
`config/initializers/_log.rb`. Here is an example configuration.
|
36
|
+
|
37
|
+
```ruby
|
38
|
+
require 'logatron/logatron'
|
39
|
+
|
40
|
+
Logatron.configure do |config|
|
41
|
+
config.host = `hostname`.chomp
|
42
|
+
config.app_id = 'my_app_name'
|
43
|
+
config.logger = Logger.new(STDOUT)
|
44
|
+
config.level = Logatron::INFO
|
45
|
+
config.base_controller_class = 'ActionController::Base' # or 'ActionController::API' or 'ApplicationController'
|
46
|
+
config.add_rails_request_field(:user_agent, &:user_agent) # optional
|
47
|
+
end
|
48
|
+
```
|
49
|
+
|
50
|
+
All the configuration fields above are required with the exception of
|
51
|
+
`.add_rails_request_field`.
|
52
|
+
|
53
|
+
#### add_rails_request_field (optional)
|
54
|
+
|
55
|
+
`.add_rails_request_field` is an extension point for the auto-logging of rails
|
56
|
+
HTTP requests. If there is an additional parameter needed in the log line of the
|
57
|
+
rails HTTP request, that can be specified here. The first argument is the name
|
58
|
+
you want that new field to have in the rails HTTP request log line. The second
|
59
|
+
argument is a block that takes `ActionDispatch::Request` as an optional
|
60
|
+
parameter and returns the value to put next to the display name in the rails
|
61
|
+
HTTP request log line. The `.add_rails_request_field` method can be called 0 or
|
62
|
+
more times, once per additional field to put in the log line.
|
63
|
+
|
64
|
+
As of now, any additional fields added to the rails HTTP request log line affect
|
65
|
+
all routes in all controllers. There is no way currently to log extra fields on
|
66
|
+
specific controller actions. In other words, the configuration is global to all
|
67
|
+
routes.
|
68
|
+
|
69
|
+
#### base_controller_class
|
70
|
+
|
71
|
+
Choose a base class that all the controllers of the application extend.
|
72
|
+
Typically, this would be `ActionController::Base`. However, if using rails 5 as
|
73
|
+
an API server, it could be `ActionController::API`. If your rails application
|
74
|
+
has the typical `ApplicationController` that all your other controllers extend,
|
75
|
+
then that controller name would work as well. For an explanation of why this
|
76
|
+
property is required, see the [How it Works] section.
|
77
|
+
|
21
78
|
### Severities
|
22
|
-
|
79
|
+
|
80
|
+
Severities are used to examine and filter server logs, create alerts, and
|
81
|
+
analyze user behavior.
|
23
82
|
|
24
83
|
* Debug - use for fixing production bugs or deeper inspection into behavior
|
25
84
|
* Info - use for general information (successful operations, ec.)
|
@@ -29,15 +88,39 @@ Severities are used to examine and filter server logs, create alerts, and analyz
|
|
29
88
|
* Critical - use for unknown unrecoverable errors (system-level rescues)
|
30
89
|
* Fatal - use for system errors
|
31
90
|
|
32
|
-
*Invalid Use* - inappropriate inputs from a user - are not immediately
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
91
|
+
*Invalid Use* - inappropriate inputs from a user - are not immediately
|
92
|
+
actionable for a development team, but may provide input into customer care,
|
93
|
+
future features, or bug fixes for poorly implemented features. This makes them
|
94
|
+
a discrete category similar to `INFO` so that any queries on the logs can be
|
95
|
+
readily consumed by such information seekers.
|
96
|
+
|
97
|
+
### How it Works
|
98
|
+
|
99
|
+
Logatron, when deployed in a non-rails environment, acts as a simple logger.
|
100
|
+
When deployed in a rails environment, the `logatron/railtie` is loaded. This
|
101
|
+
railtie uses the gem lograge under the hood. It is lograge that is used to write
|
102
|
+
the one-line rails HTTP request log line. Logatron works to do all the
|
103
|
+
configuration necessary of both lograge and payload methods off the base
|
104
|
+
controller class.
|
105
|
+
|
106
|
+
Perhaps the most non-intuitive operation the logatron railtie does is perform an
|
107
|
+
"around alias" on the `.append_info_to_payload` method in the base controller
|
108
|
+
specified in the logatron configuration (see `lib/logatron/railtie.rb`). This
|
109
|
+
method is part of the `ActiveSupport::Notifications` code mixed in the
|
110
|
+
`ActionController` in rails by default. Lograge depends upon this notification
|
111
|
+
code as a trigger to write the rails HTTP request log line.
|
112
|
+
|
113
|
+
The around-aliasing of the `.append_info_to_payload` was done so that consumers
|
114
|
+
of logatron do not need to concern themselves with specifying that method
|
115
|
+
themselves.
|
116
|
+
|
117
|
+
## Testing
|
118
|
+
|
119
|
+
There is one test worthy of note, `spec/lib/logatron/railtie_spec.rb`. This test
|
120
|
+
launches a real rails application via the gem combustion. Any necessary files in
|
121
|
+
addition to a typical rails application are specified in the folder
|
122
|
+
`spec/internal`. It is here you can see the configuration of logatron specified
|
123
|
+
in the `_log.rb` file. The downside of this testing is that rails can be
|
124
|
+
initialized only one time, so only one rspec scenario is testing the railtie.
|
125
|
+
|
126
|
+
[How it Works]: #how_it_works
|
data/lib/logatron.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'logatron/logatron'
|
@@ -8,8 +8,8 @@ require 'active_support/json'
|
|
8
8
|
|
9
9
|
module Logatron
|
10
10
|
class << self
|
11
|
-
def configuration=
|
12
|
-
@configuration =
|
11
|
+
def configuration=(config)
|
12
|
+
@configuration = config
|
13
13
|
end
|
14
14
|
|
15
15
|
def configuration
|
@@ -23,8 +23,8 @@ module Logatron
|
|
23
23
|
end
|
24
24
|
|
25
25
|
class Configuration
|
26
|
-
attr_accessor :logger, :host, :level, :transformer, :app_id, :error_formatter
|
27
|
-
attr_reader :loggable_levels, :backtrace_cleaner
|
26
|
+
attr_accessor :logger, :host, :level, :transformer, :app_id, :error_formatter, :base_controller_class
|
27
|
+
attr_reader :loggable_levels, :backtrace_cleaner, :custom_rails_request_fields
|
28
28
|
|
29
29
|
def initialize
|
30
30
|
@logger = Logger.new(STDOUT)
|
@@ -37,6 +37,7 @@ module Logatron
|
|
37
37
|
@loggable_levels = levels.select { |level| SEVERITY_MAP[level] >= level_threshold }
|
38
38
|
@backtrace_cleaner = Logatron::BacktraceCleaner.new
|
39
39
|
@error_formatter = Logatron::ErrorFormatter.new
|
40
|
+
@custom_rails_request_fields = []
|
40
41
|
end
|
41
42
|
|
42
43
|
def logger=(logger)
|
@@ -45,5 +46,20 @@ module Logatron
|
|
45
46
|
@logger.level = level
|
46
47
|
@logger.formatter = Logatron::BasicFormatter.new
|
47
48
|
end
|
49
|
+
|
50
|
+
# Add custom fields to the request log line that is produced for every
|
51
|
+
# rails request served. This will affect all rails requests for the project.
|
52
|
+
#
|
53
|
+
# @example
|
54
|
+
# config.add_rails_request_field(:user_agent) { |req| req.user_agent }
|
55
|
+
#
|
56
|
+
# @param name [Symbol] the display name for the value in the request log line
|
57
|
+
# @yield [ActionDispatch::Request] block for determining the value to display
|
58
|
+
# in the request log line. Takes an optional rails request object for the
|
59
|
+
# current action as a parameter and returns the string value to put in the
|
60
|
+
# request log line.
|
61
|
+
def add_rails_request_field(name, &value_block)
|
62
|
+
@custom_rails_request_fields.push(name: name, value_block: value_block)
|
63
|
+
end
|
48
64
|
end
|
49
65
|
end
|
data/lib/logatron/logatron.rb
CHANGED
data/lib/logatron/railtie.rb
CHANGED
@@ -1,5 +1,15 @@
|
|
1
|
-
require '
|
1
|
+
require 'logatron'
|
2
|
+
begin
|
3
|
+
require 'lograge'
|
4
|
+
rescue LoadError
|
5
|
+
msg = [
|
6
|
+
'Include "lograge" in your bundle. It was left out of the gemspec of',
|
7
|
+
'Logatron to keep dependencies down for projects that do not use Rails.'
|
8
|
+
].join(' ')
|
9
|
+
raise LoadError, msg
|
10
|
+
end
|
2
11
|
require 'syslog/logger'
|
12
|
+
|
3
13
|
module Syslog
|
4
14
|
class Logger
|
5
15
|
alias log add
|
@@ -25,6 +35,58 @@ module Logatron
|
|
25
35
|
end
|
26
36
|
end
|
27
37
|
|
38
|
+
module SetupLograge
|
39
|
+
class << self
|
40
|
+
def setup(app_config)
|
41
|
+
app_config.lograge.logger = Logatron.configuration.logger
|
42
|
+
app_config.lograge.enabled = true
|
43
|
+
app_config.lograge.formatter = Lograge::Formatters::Json.new
|
44
|
+
app_config.lograge.custom_options = lambda do |event|
|
45
|
+
request = event.payload[:rails_request]
|
46
|
+
standard_opts(request).merge(custom_opts(request))
|
47
|
+
end
|
48
|
+
app_config.after_initialize do
|
49
|
+
setup_app_controller
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
private
|
54
|
+
|
55
|
+
def standard_opts(request)
|
56
|
+
{
|
57
|
+
source: request.remote_ip,
|
58
|
+
severity: Logatron::INFO,
|
59
|
+
site: Logatron.site,
|
60
|
+
timestamp: Time.now.iso8601,
|
61
|
+
host: Logatron.configuration.host,
|
62
|
+
pid: Process.pid,
|
63
|
+
app_id: Logatron.configuration.app_id,
|
64
|
+
id: Logatron.msg_id
|
65
|
+
}
|
66
|
+
end
|
67
|
+
|
68
|
+
def custom_opts(request)
|
69
|
+
Logatron.configuration.custom_rails_request_fields.each_with_object({}) do |e, a|
|
70
|
+
a[e[:name]] = e[:value_block].call(request)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def setup_app_controller
|
75
|
+
controller_class = Logatron.configuration.base_controller_class.try(:constantize) || ActionController::Base
|
76
|
+
original_append_method = controller_class.instance_method(:append_info_to_payload)
|
77
|
+
controller_class.send(:define_method, :append_info_to_payload) do |payload|
|
78
|
+
original_append_method.bind(self).call(payload)
|
79
|
+
payload[:rails_request] = request
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# NOTE: This Railtie is not tested in this project. Doing so would require
|
86
|
+
# having a small rails app in the test folder, or using the 'combustion'
|
87
|
+
# gem. It isn't worth it. Just verify it works in the apps that use it.
|
88
|
+
# We will know if it doesn't work because there will not be log messages
|
89
|
+
# for requests.
|
28
90
|
class Railtie < Rails::Railtie
|
29
91
|
initializer 'logatron.configure_rails_initialization' do |app|
|
30
92
|
if defined?(Warden::Manager)
|
@@ -34,11 +96,6 @@ module Logatron
|
|
34
96
|
end
|
35
97
|
end
|
36
98
|
|
37
|
-
config
|
38
|
-
config.lograge.enabled = true
|
39
|
-
config.lograge.formatter = Lograge::Formatters::Json.new
|
40
|
-
config.lograge.custom_options = lambda do |event|
|
41
|
-
{ source: event.payload[:ip], severity: Logatron::INFO, site: Logatron.site, timestamp: Time.now.iso8601, host: Logatron.configuration.host, pid: Process.pid, app_id: Logatron.configuration.app_id, id: Logatron.msg_id }
|
42
|
-
end
|
99
|
+
SetupLograge.setup(config)
|
43
100
|
end
|
44
101
|
end
|
data/logatron.gemspec
CHANGED
@@ -1,26 +1,25 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'logatron/version'
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
6
|
spec.name = 'logatron'
|
8
|
-
spec.version = '0.
|
9
|
-
spec.authors = ['
|
10
|
-
spec.email = ['justin.mgrimes@gmail.com']
|
7
|
+
spec.version = '0.16.0'
|
8
|
+
spec.authors = ['Indigo BioAutomation']
|
11
9
|
|
12
10
|
spec.summary = 'Logging for ascent '
|
13
11
|
spec.description = 'Logging for ascent '
|
14
12
|
spec.homepage = 'http://github.com/indigobio/logatron'
|
15
13
|
|
16
14
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
|
-
spec.bindir = 'exe'
|
18
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
19
15
|
spec.require_paths = ['lib']
|
20
16
|
spec.add_runtime_dependency 'activesupport', '< 6.0', '>= 4.2.1'
|
21
|
-
spec.add_runtime_dependency 'abstractivator', '~> 0.16
|
17
|
+
spec.add_runtime_dependency 'abstractivator', '~> 0.16'
|
22
18
|
spec.add_development_dependency 'bundler', '~> 1.10'
|
23
19
|
spec.add_development_dependency 'rake', '~> 10.0'
|
24
20
|
spec.add_development_dependency 'rspec', '~> 3'
|
25
21
|
spec.add_development_dependency 'rspec_junit_formatter', '~> 0.2.0'
|
22
|
+
spec.add_development_dependency 'combustion', '~> 0.7.0' # for testing the Railtie
|
23
|
+
spec.add_development_dependency 'rspec-rails', '~> 3.7' # required for cumbustion gem
|
24
|
+
spec.add_development_dependency 'lograge' # required for logatron but not prod gem since only used for railtie
|
26
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logatron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Indigo BioAutomation
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 0.16
|
39
|
+
version: '0.16'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 0.16
|
46
|
+
version: '0.16'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,23 +100,61 @@ dependencies:
|
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: 0.2.0
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: combustion
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.7.0
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 0.7.0
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rspec-rails
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '3.7'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '3.7'
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: lograge
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - ">="
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: '0'
|
103
145
|
description: 'Logging for ascent '
|
104
|
-
email:
|
105
|
-
- justin.mgrimes@gmail.com
|
146
|
+
email:
|
106
147
|
executables: []
|
107
148
|
extensions: []
|
108
149
|
extra_rdoc_files: []
|
109
150
|
files:
|
110
151
|
- ".gitignore"
|
111
152
|
- ".ruby-version"
|
112
|
-
- CHANGES.md
|
113
|
-
- CODE_OF_CONDUCT.md
|
114
153
|
- Gemfile
|
115
154
|
- README.md
|
116
155
|
- Rakefile
|
117
|
-
- bin/console
|
118
|
-
- bin/setup
|
119
156
|
- build.yml
|
157
|
+
- lib/logatron.rb
|
120
158
|
- lib/logatron/backtrace_cleaner.rb
|
121
159
|
- lib/logatron/basic_formatter.rb
|
122
160
|
- lib/logatron/basic_logger.rb
|
@@ -128,7 +166,6 @@ files:
|
|
128
166
|
- lib/logatron/logatron.rb
|
129
167
|
- lib/logatron/message_formatting.rb
|
130
168
|
- lib/logatron/railtie.rb
|
131
|
-
- lib/logatron/version.rb
|
132
169
|
- logatron.gemspec
|
133
170
|
- update_version.sh
|
134
171
|
homepage: http://github.com/indigobio/logatron
|
@@ -150,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
187
|
version: '0'
|
151
188
|
requirements: []
|
152
189
|
rubyforge_project:
|
153
|
-
rubygems_version: 2.6.
|
190
|
+
rubygems_version: 2.6.11
|
154
191
|
signing_key:
|
155
192
|
specification_version: 4
|
156
193
|
summary: Logging for ascent
|
data/CHANGES.md
DELETED
@@ -1,114 +0,0 @@
|
|
1
|
-
## [0.5.0](https://github.com/indigobio/logatron/compare/v0.4.1...indigobio:v0.5.0) (2016-06-02)
|
2
|
-
|
3
|
-
- Update version to 0.5.0
|
4
|
-
([be53842](https://github.com/indigobio/logatron/commit/be53842df2da6479b23ca019d34bdc96035e7915))
|
5
|
-
- Added changelog and build.yml
|
6
|
-
([2ee67c1](https://github.com/indigobio/logatron/commit/2ee67c100a012f7ba9c8ee9bd842603d9f108c84))
|
7
|
-
|
8
|
-
|
9
|
-
## [0.4.1](https://github.com/indigobio/logatron/compare/v0.4.0...indigobio:v0.4.1) (2016-05-02)
|
10
|
-
|
11
|
-
[AR-1794](https://indigobio.atlassian.net/browse/AR-1794) - Add 'app' as a key to the logging format in logatron<br/>
|
12
|
-
|
13
|
-
- [AR-1794](https://indigobio.atlassian.net/browse/AR-1794) added pid
|
14
|
-
([5db2f8b](https://github.com/indigobio/logatron/commit/5db2f8b0c852e6a5b183bf75aa68ae9983e485ea))
|
15
|
-
- [AR-1794](https://indigobio.atlassian.net/browse/AR-1794) fixed new lines
|
16
|
-
([c640e80](https://github.com/indigobio/logatron/commit/c640e80d59de6723ff235937480b03e0b8127887))
|
17
|
-
- [AR-1794](https://indigobio.atlassian.net/browse/AR-1794) needed railtie formatter
|
18
|
-
([756dd69](https://github.com/indigobio/logatron/commit/756dd69b7306ade50877923b9711d4d5b218a9c8))
|
19
|
-
|
20
|
-
|
21
|
-
## [0.4.0](https://github.com/indigobio/logatron/compare/v0.3.0...indigobio:v0.4.0) (2016-05-02)
|
22
|
-
|
23
|
-
[AR-1794](https://indigobio.atlassian.net/browse/AR-1794) - Add 'app' as a key to the logging format in logatron<br/>
|
24
|
-
|
25
|
-
- Formatting with rubocop
|
26
|
-
([bc198d7](https://github.com/indigobio/logatron/commit/bc198d73e5e32e27761421fbd1a8e1ae91eba0b6))
|
27
|
-
- [AR-1794](https://indigobio.atlassian.net/browse/AR-1794) Added app_id, default it to 'N/A', can be set in logatron's configuration
|
28
|
-
([4b79949](https://github.com/indigobio/logatron/commit/4b7994941f9b89cc6c82b673fca2ae2385487312))
|
29
|
-
|
30
|
-
|
31
|
-
## [0.3.0](https://github.com/indigobio/logatron/compare/v0.2.6...indigobio:v0.3.0) (2016-04-20)
|
32
|
-
|
33
|
-
[AR-1708](https://indigobio.atlassian.net/browse/AR-1708) - Add "invalid_use" for severity options to Logatron<br/>
|
34
|
-
|
35
|
-
- Turn off debugging in update_version.sh
|
36
|
-
([52b7c89](https://github.com/indigobio/logatron/commit/52b7c89227006886cb1227343af4a735aba4f7d1))
|
37
|
-
- Remove dead code in update_version.sh; turn on debugging
|
38
|
-
([bbd7773](https://github.com/indigobio/logatron/commit/bbd77735cda5d1f92b2399461eaca8040dbf53cb))
|
39
|
-
- [AR-1708](https://indigobio.atlassian.net/browse/AR-1708) Improved method for logging exceptions
|
40
|
-
([97f6a2e](https://github.com/indigobio/logatron/commit/97f6a2e46f4c0837a64cda4afe94310c8a7929f7))
|
41
|
-
|
42
|
-
|
43
|
-
## [0.2.6](https://github.com/indigobio/logatron/compare/v0.2.5...indigobio:v0.2.6) (2016-04-15)
|
44
|
-
|
45
|
-
[AR-1708](https://indigobio.atlassian.net/browse/AR-1708) - Add "invalid_use" for severity options to Logatron<br/>
|
46
|
-
|
47
|
-
- [AR-1708](https://indigobio.atlassian.net/browse/AR-1708) - Flipped conditional in my review, didn't run tests. Failed us all
|
48
|
-
([e022ed3](https://github.com/indigobio/logatron/commit/e022ed38a9b9375fd491f6da0fef13a2d85f4cc1))
|
49
|
-
- [AR-1708](https://indigobio.atlassian.net/browse/AR-1708) - Robust filtering of loggable levels, adding comments
|
50
|
-
([88b6a43](https://github.com/indigobio/logatron/commit/88b6a43e82f931da089048fc4738927f8a291ca3))
|
51
|
-
- [AR-1708](https://indigobio.atlassian.net/browse/AR-1708) - Adding invalid_use to tests, loggers
|
52
|
-
([32f6eeb](https://github.com/indigobio/logatron/commit/32f6eebf7a2d5ad20074dc56a68300e749e06b0f))
|
53
|
-
|
54
|
-
|
55
|
-
## [0.2.5](https://github.com/indigobio/logatron/compare/v0.2.4...indigobio:v0.2.5) (2016-04-13)
|
56
|
-
|
57
|
-
[AR-1708](https://indigobio.atlassian.net/browse/AR-1708) - Add "invalid_use" for severity options to Logatron<br/>
|
58
|
-
|
59
|
-
|
60
|
-
## [0.2.4](https://github.com/indigobio/logatron/compare/v0.2.3...indigobio:v0.2.4) (2016-02-03)
|
61
|
-
|
62
|
-
|
63
|
-
## [0.2.3](https://github.com/indigobio/logatron/compare/v0.2.2...indigobio:v0.2.3) (2016-01-06)
|
64
|
-
|
65
|
-
|
66
|
-
## [0.2.2](https://github.com/indigobio/logatron/compare/v0.2.1...indigobio:v0.2.2) (2016-01-04)
|
67
|
-
|
68
|
-
|
69
|
-
## [0.2.1](https://github.com/indigobio/logatron/compare/v0.2.0...indigobio:v0.2.1) (2015-12-18)
|
70
|
-
|
71
|
-
|
72
|
-
## [0.2.0](https://github.com/indigobio/logatron/compare/v0.1.11...indigobio:v0.2.0) (2015-12-16)
|
73
|
-
|
74
|
-
|
75
|
-
## [0.1.11](https://github.com/indigobio/logatron/compare/v0.1.10...indigobio:v0.1.11) (2015-12-16)
|
76
|
-
|
77
|
-
|
78
|
-
## [0.1.10](https://github.com/indigobio/logatron/compare/v0.1.9...indigobio:v0.1.10) (2015-12-16)
|
79
|
-
|
80
|
-
|
81
|
-
## [0.1.9](https://github.com/indigobio/logatron/compare/v0.1.8...indigobio:v0.1.9) (2015-12-16)
|
82
|
-
|
83
|
-
|
84
|
-
## [0.1.8](https://github.com/indigobio/logatron/compare/v0.1.7...indigobio:v0.1.8) (2015-12-16)
|
85
|
-
|
86
|
-
|
87
|
-
## [0.1.7](https://github.com/indigobio/logatron/compare/v0.1.6...indigobio:v0.1.7) (2015-12-16)
|
88
|
-
|
89
|
-
|
90
|
-
## [0.1.6](https://github.com/indigobio/logatron/compare/v0.1.5...indigobio:v0.1.6) (2015-12-16)
|
91
|
-
|
92
|
-
|
93
|
-
## [0.1.5](https://github.com/indigobio/logatron/compare/v0.1.4...indigobio:v0.1.5) (2015-12-16)
|
94
|
-
|
95
|
-
|
96
|
-
## [0.1.4](https://github.com/indigobio/logatron/compare/v0.1.3...indigobio:v0.1.4) (2015-12-03)
|
97
|
-
|
98
|
-
|
99
|
-
## [0.1.3](https://github.com/indigobio/logatron/compare/v0.1.2...indigobio:v0.1.3) (2015-12-03)
|
100
|
-
|
101
|
-
- Give lograge logatron as its logger. Alias log and add for Syslog::Logger since all other "Logger" classes in ruby do this
|
102
|
-
([d3c1e18](https://github.com/indigobio/logatron/commit/d3c1e184bb92c61ed8ebcdc0b14c9de09cb8c92d))
|
103
|
-
|
104
|
-
|
105
|
-
## [0.1.2](https://github.com/indigobio/logatron/compare/v0.1.1...indigobio:v0.1.2) (2015-11-19)
|
106
|
-
|
107
|
-
- Removed hard dependency on logatron to avoid pulling a bunch of rails gems into every project that uses logatron
|
108
|
-
([25daaab](https://github.com/indigobio/logatron/commit/25daaab6d9233afa258f3d8524926e6db0f34166))
|
109
|
-
|
110
|
-
|
111
|
-
## [0.1.1](https://github.com/indigobio/logatron/compare/v0.1.0...indigobio:v0.1.1) (2015-11-13)
|
112
|
-
|
113
|
-
|
114
|
-
## [0.1.0](https://github.com/indigobio/logatron/compare/b6d85beb93a2c9f3c18052f52ba676613c6bdaed...indigobio:v0.1.0) (2015-11-13)
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# Contributor Code of Conduct
|
2
|
-
|
3
|
-
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
-
|
5
|
-
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
-
|
7
|
-
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
-
|
9
|
-
Project maintainers 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. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
-
|
11
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
-
|
13
|
-
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'bundler/setup'
|
4
|
-
require 'logatron/logatron'
|
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
|
data/bin/setup
DELETED
data/lib/logatron/version.rb
DELETED