hedgelog 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/.hound.yml +2 -0
- data/.travis.yml +4 -1
- data/README.md +2 -1
- data/lib/hedgelog/version.rb +1 -1
- data/lib/hedgelog.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MTVkYWUyYjFjZWMzMmIzMjlhMzUwNjcwZGQ3MjJhZjZiZjJlODQ0MQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
NWQxODNlNDZkNjQzYzllZTM1MjllYjJkNjBiYjFiNGNiNzI2MjYyNA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
ZmFmYzE5NzY3YjQyNGIwMDBkN2RmY2I3NmVlZGQwNjBhY2I3ZmIzNzJmYmNj
|
|
10
|
+
Yzg0OWRlZmFmZDRhMjEyNDAwYzBmYjYwOGNmNzk3MTFkNTZhNTkzYjdkMjZi
|
|
11
|
+
NzYxYjBkMzI5NzdlYmRiMGIxY2VkZTI2YTE5ZGRmYjYyZTY0MGE=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YzZiYTMxMjQ4MTY2ZTZkYzg3YmIzN2Y3NzJhMzA1NzFkNWZmNDJiMzJlYjlh
|
|
14
|
+
ZDFlNjIzZjUxYWVmOTU4OWZiNTlkNTZjMGEzNDM0NzFlY2VjNjQ0MDBjZjFi
|
|
15
|
+
MzZiM2I4NmM1MDkzMTU5MzkzZDMyZWYzYTdhZmQwYmQwNDhkZWM=
|
data/.hound.yml
ADDED
data/.travis.yml
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
language: ruby
|
|
2
|
+
cache: bundler
|
|
2
3
|
rvm:
|
|
3
4
|
- 2.2.2
|
|
4
5
|
- 1.9.3
|
|
5
6
|
script:
|
|
6
7
|
- bundle exec rspec
|
|
7
|
-
- bundle exec rubocop
|
|
8
|
+
- bundle exec rubocop lib spec
|
|
8
9
|
deploy:
|
|
9
10
|
- provider: releases
|
|
10
11
|
api_key:
|
|
@@ -13,6 +14,7 @@ deploy:
|
|
|
13
14
|
file: hedgelog-*.gem
|
|
14
15
|
on:
|
|
15
16
|
tags: true
|
|
17
|
+
rvm: 2.2.2
|
|
16
18
|
repo: firespring/hedgelog
|
|
17
19
|
- provider: rubygems
|
|
18
20
|
api_key:
|
|
@@ -20,4 +22,5 @@ deploy:
|
|
|
20
22
|
gem: hedgelog
|
|
21
23
|
on:
|
|
22
24
|
tags: true
|
|
25
|
+
rvm: 2.2.2
|
|
23
26
|
repo: firespring/hedgelog
|
data/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# Hedgelog
|
|
2
2
|
[](http://badge.fury.io/rb/hedgelog)
|
|
3
|
-
[](https://travis-ci.org/firespring/hedgelog)
|
|
3
|
+
[](https://travis-ci.org/firespring/hedgelog)
|
|
4
4
|
[](https://gemnasium.com/firespring/hedgelog)
|
|
5
|
+
[](https://codeclimate.com/github/firespring/hedgelog)
|
|
5
6
|
|
|
6
7
|
This gem provides an opinionated Ruby logger for writing structured JSON logs. It attempts to maintain compatibility with the standard Ruby logger api while extending it with functionality relevant to JSON logging.
|
|
7
8
|
|
data/lib/hedgelog/version.rb
CHANGED
data/lib/hedgelog.rb
CHANGED
|
@@ -16,7 +16,7 @@ class Hedgelog
|
|
|
16
16
|
TOP_LEVEL_KEYS = [:app, :channel, :level, :level_name, :message, :request_id, :timestamp]
|
|
17
17
|
RESERVED_KEYS = [:app, :level, :level_name, :timestamp, :context, :caller]
|
|
18
18
|
|
|
19
|
-
TIMESTAMP_FORMAT = '%Y-%m-%dT%H:%M:%S.%6N'.freeze
|
|
19
|
+
TIMESTAMP_FORMAT = '%Y-%m-%dT%H:%M:%S.%6N%z'.freeze
|
|
20
20
|
BACKTRACE_RE = /([^:]+):([0-9]+)(?::in `(.*)')?/
|
|
21
21
|
|
|
22
22
|
def initialize(logdev = STDOUT, shift_age = nil, shift_size = nil)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hedgelog
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeff Utter
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-09-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: yajl-ruby
|
|
@@ -46,6 +46,7 @@ extensions: []
|
|
|
46
46
|
extra_rdoc_files: []
|
|
47
47
|
files:
|
|
48
48
|
- .gitignore
|
|
49
|
+
- .hound.yml
|
|
49
50
|
- .rspec
|
|
50
51
|
- .rubocop.yml
|
|
51
52
|
- .simplecov
|