hedgelog 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODBjYWJhZDM5N2Q0Mzg0Y2QwZWVlZGMwMDg1ZTc1YWY0ZjgxZGJlNg==
4
+ NDYxYmRhYjQ4ZTY1NDM1ZGNkN2VmM2JjMDg3MmIzZTIwMWMwYTg5MQ==
5
5
  data.tar.gz: !binary |-
6
- NTZmZTYyNzRmYTNkNTExZDEyMDBlYzcxMzljZmEyNjY4MWRmMjdiYQ==
6
+ OTkxZmNkMjFiOTdlMDEyNDM3MDJjMWJkNTIwMGE4OTU0MjVlMWFiNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- M2Y0NzU1YjVmMzU4NmEzMGRmMmY0MzgzOGVmOTEyYTcwM2MxNGEzNDdlMThi
10
- M2IwOTI2MjdmYmFlMTlhODgxNjNiYjE2MzQzMzRkMzNmZjRkYjM3NmUzNDBi
11
- OGJkZDgxNWRiODY4NmMwOTUyYjk5YmJmZmIwMjczMjRhOTRmYmI=
9
+ OGY5MGE4MmFkMzExY2M0MmU5N2FmYzZmZGIxMzUxNzI2MDkwMzcyOGI0YTI0
10
+ NWM1NzI0NTFiZTQzZmZjYTY4NDU1ZDcwYmZhM2U3YmU1MjQzYTZmOGYxNGU2
11
+ MmFlYTJjYmQ5YTU5NTk3M2Y3ZmE1YmRhZjJkMTFkYzE2NTNiMTc=
12
12
  data.tar.gz: !binary |-
13
- NjM0MTUxZmQxYzMxY2Y2ZjNmM2I5NGY2NjI0ZTQ1ZDM3NjQ4MTQ3ODQ1OGRl
14
- ZTFhZDlkOGQyNDQ1YzkwZWIzNTc1ZWQwYjlhNDAxNjliOTQ1NDYxYWRiNGQ0
15
- NDgwZDJjNTU1NGVlYzUyN2YwYTU5MmJmODdiNTA0NTMxZTkzMTE=
13
+ NmNjYzQ1NDg2NjYzYmZkZmZjYzhlOTM5NjFjNTlkZmFhZWIzZjRiY2I4N2U5
14
+ ODI3MWFiOGM5OTY1MjdiZTZlMGJmNjg3OGVhY2VmYTM5NmZjMmYxNDdjMTc2
15
+ MTY2NjM2MjczNWEyNGQ1YWRkYzUxZWQ3NGU2MjI0ZDg0MzUwOTU=
data/.travis.yml CHANGED
@@ -5,3 +5,19 @@ rvm:
5
5
  script:
6
6
  - bundle exec rspec
7
7
  - bundle exec rubocop
8
+ deploy:
9
+ - provider: releases
10
+ api_key:
11
+ secure: Ob2+ZdkM5msawA9FnJ8hk7wLgUP9tJg+gOIs1VOpOzq7cqHUmbK2tGwJPSWX+yzFA5A9o520SLJB0MAfnO78DjByRenH1e8keg0uxZ17ci8FDWEPhF53cCjuTLhsaC9qxVcbNps4Z8pg5lQ/0IPaef0lVX0u2jPEHagNBmfJdYLthUPH/M/AcoVT/chjxWw3SNON4LdcUQw5qtpMUe/Clroi5LaaYPWui0o7z6EmlqwV0gFd5oVkXabwuMkWU06tFzxO+AgBT7qeMCDSXqa2ODaWItE74i8TVEMRDHiY+0a0gs76xjsfkml4Q0dNw8YuKcO4p25QskNeTtxi3rZoMToG4e8MfHZG+3YLu3u9VKp0fR7WsL21Jf27dDscXapXyVcMZ+AcklRMEGmKjsyKPnxepcR5RtmoVbDY9/SnJfECa62diZyzMYpjDvu4ZVut5vf/m8AvhnotpwTE2Nilb268f36uIloTG/5zrA113KiEAw5OW0abOm0JFn7t2bZty9D1rwyXiUGZmeS+ZFFE0+zCKXFv5VyK9ZmG4OKbGMMQJRsF+ej70Uv88MbwSS8TDRu0U1bnHBQ6aP3Wc7POihk9M2NAokFppQ9R0htVm0XWrDsxWnEqMMf8HZAQ8fsM9P1jZclgJKnzdSqpKjW4cGAk9i5+mepG6BcASfoUkhk=
12
+ file_glob: true
13
+ file: hedgelog-*.gem
14
+ on:
15
+ tags: true
16
+ repo: firespring/hedgelog
17
+ - provider: rubygems
18
+ api_key:
19
+ secure: 0lJg8R4FfcC/V0CQP1+MtvaOTHumMczV6W5wNvW+S4C9A+EhWgNdZDZ1tPbLQDRm4rBhr15k6KpZUmR1hMiu2xpN/O9wpdLqrhFccnP8+3qSYWi4Mqns/lFLQtVwlfQeSjQPejHeel7wEDAo/iFs9lgVzyXtusAgIZ8qQLJIa2T8cLE5Kdh/xfJTfdYCojJkw+5XoxARFmiXz5dIBb+1jiYmAULgRQpNUifz+IspAUxDf8BXjZFi7TZeKf34kOnVRUXLdjFOkTIXSx7F1NlSCFUmQtjf1Ft1PfJUwZ+eh5B0u5AL7JMA3pA9T6WNpqJpedVCD5KvkqKeILYFkYriro7K41MCPXBM4CAXSgpqnwiGCR64eBm85nGaRbYIZ+8AdGKxd1wS+fVkpOv4PxDADDD+qPIVTpuTeIJ2+hZYpHdsD5bYtqhvqdUkVOdilnBZKFYHVwHZvkObOoGyk0g3PzwYOUSnG3BJ3YhinTzNuXkOBhUdGN/eZna314hPLVGySTlmpnnof2lWQFArJXTcJXVQBdkSdlML7vvv4QjttOBNX6ICzOimFDrTDIlf3hkrf3+bGva3v0tBn3cz4bLOZgdvWrhhJ+p6TzPCGoseKUE2e+zvBAsPEzjYI9G+hKkSbtT0rFZ6O/Cr21dL/Mbf2WMz0NfhmTc4J3kdP2Y98Ow=
20
+ gem: hedgelog
21
+ on:
22
+ tags: true
23
+ repo: firespring/hedgelog
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # Hedgelog
2
+ [![Gem Version](https://badge.fury.io/rb/hedgelog.svg)](http://badge.fury.io/rb/hedgelog)
3
+ [![Build Status](https://travis-ci.org/firespring/hedgelog.svg)](https://travis-ci.org/firespring/hedgelog)
4
+ [![Dependency Status](https://gemnasium.com/firespring/hedgelog.svg)](https://gemnasium.com/firespring/hedgelog)
2
5
 
3
6
  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.
4
7
 
@@ -53,26 +56,26 @@ logger.info "FOO"
53
56
  => {"request_id":1234,"message":"FOO","timestamp":"2015-07-15T12:09:33.129984","level_name":"info","level":1}
54
57
  ```
55
58
 
56
- ## Sub-channels
59
+ ## Channels
57
60
 
58
- One of the primary features of Hedgelog is the usage of sub-channels.
61
+ One of the primary features of Hedgelog is the usage of channels.
59
62
 
60
- Sub-channels can have their own context separate from the main loggers context. This allows including additional information for all log messages from a portion of your application.
63
+ Channels can have their own context separate from the main loggers context. This allows including additional information for all log messages from a portion of your application.
61
64
 
62
65
  ```ruby
63
- subchannel = logger.subchannel(:database)
64
- subchannel.info "FOO"
65
- => {"subchannel":"database","message":"FOO","timestamp":"2015-07-15T12:12:39.147210","level_name":"info","level":1}
66
+ channel = logger.channel(:database)
67
+ channel.info "FOO"
68
+ => {"channel":"database","message":"FOO","timestamp":"2015-07-15T12:12:39.147210","level_name":"info","level":1}
66
69
 
67
- # The subchannel does not effect the primary instance of the logger
70
+ # The channel does not effect the primary instance of the logger
68
71
  logger.info "FOO"
69
72
  =>{"message":"FOO","timestamp":"2015-07-15T12:13:31.132059","level_name":"info","level":1}
70
73
  ```
71
74
 
72
- The sub-channel instances conform to the same interface as Hedgelog. Therefore they can be passed in as standard Ruby loggers to gems that take an instance of Ruby logger for input.
75
+ The channel instances conform to the same interface as Hedgelog. Therefore they can be passed in as standard Ruby loggers to gems that take an instance of Ruby logger for input.
73
76
 
74
77
  ```ruby
75
- DataMapper.logger = logger.subchannel(:database)
78
+ DataMapper.logger = logger.channel(:database)
76
79
  ```
77
80
 
78
81
  ## Scrubbing
@@ -1,3 +1,3 @@
1
1
  class Hedgelog
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hedgelog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Utter
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  requirements: []
88
88
  rubyforge_project:
89
- rubygems_version: 2.4.3
89
+ rubygems_version: 2.4.5
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: An opinionated/strucutred JSON logger for Ruby