timber 1.1.9 → 1.1.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cbe987d8fbffcd959912acd47bdca88392cb6639
4
- data.tar.gz: 80f5e3d9615a6a1d31f0bf29708a9f14b32f4698
3
+ metadata.gz: cf8ca0fa8a0c433dbcc8e9579f709251a505acb2
4
+ data.tar.gz: 0f68b1ff1a44242ae1ea2cbc0deafca22f13aa47
5
5
  SHA512:
6
- metadata.gz: 46c5cf19a12a27e92a8891b340af164429e6983343cfcd2dfb013ebfc167dd714863874ece6350619a7c58a6253cf44059b8d903249ffb35419b5b3d6b027523
7
- data.tar.gz: 4f8e29cef3c8337df09f6c05541a67f00f89312eedccc667c692bf0afb7d6d08b9578e361346a336e343c270f25403214f07c7f2ce226e3b2f1bdb6e3195b295
6
+ metadata.gz: 5619ca746b6f89d05befe196ef82dc5a501fa019386151299674e415aa2c861dc2c2832b82ee80ad697954a77d3cf24f91bbac86fd503c0e8450ed296cdc5018
7
+ data.tar.gz: 59930d73ce4d2adb12271558644d62857d1f6def99156b166233cb82217cfcccd9971317e29581cb3dcd4f227acb1c19ffb708c1781dceaf0a8e337d096fea90
data/README.md CHANGED
@@ -84,12 +84,6 @@ No problem! You can easily install Timber following these steps:
84
84
  </p></details>
85
85
 
86
86
 
87
-
88
-
89
-
90
-
91
-
92
-
93
87
  ## Send your logs (choose one)
94
88
 
95
89
  <details><summary><strong>Heroku (log drains)</strong></summary><p>
@@ -103,7 +97,7 @@ The recommended strategy for Heroku is to setup a
103
97
 
104
98
  </p></details>
105
99
 
106
- <details><summary><strong>All other platforms (Network / HTTP)</strong></summary><p>
100
+ <details><summary><strong>Or, all other platforms (Network / HTTP)</strong></summary><p>
107
101
 
108
102
  1. *Specify* the Timber Network logger backend in `config/environments/production.rb`:
109
103
 
@@ -113,7 +107,7 @@ The recommended strategy for Heroku is to setup a
113
107
  # config/environments/production.rb (or staging, etc)
114
108
 
115
109
  network_log_device = Timber::LogDevices::Network.new(ENV['TIMBER_LOGS_KEY'])
116
- config.logger = Timber::Logger.new(network_log_device) # <-- Use network_log_device instead of STDOUT
110
+ config.logger = ActiveSupport::TaggedLogging.new(Timber::Logger.new(network_log_device))
117
111
  ```
118
112
 
119
113
  2. Obtain your Timber API :key: by **[adding your app in Timber](https://app.timber.io)**.
@@ -122,7 +116,7 @@ The recommended strategy for Heroku is to setup a
122
116
 
123
117
  </p></details>
124
118
 
125
- <details><summary><strong>Advanced setup (syslog, file tailing agent, etc)</strong></summary><p>
119
+ <details><summary><strong>Or, advanced setup (syslog, file tailing agent, etc)</strong></summary><p>
126
120
 
127
121
  Checkout our [docs](https://timber.io/docs) for a comprehensive list of install instructions.
128
122
 
@@ -184,10 +178,9 @@ end
184
178
 
185
179
  </p></details>
186
180
 
187
- <details><summary><strong>Timings</strong></summary><p>
181
+ <details><summary><strong>Timing events</strong></summary><p>
188
182
 
189
- Timings allow you to easily capture one-off timings in your code; a simple
190
- way to benchmark code execution:
183
+ Timings provid a simple way to time code execution:
191
184
 
192
185
  ```ruby
193
186
  start = Time.now
@@ -1,6 +1,7 @@
1
1
  # core classes
2
2
  require "json" # brings to_json to the core classes
3
3
 
4
+ require "timber/overrides/logger_add"
4
5
  require "timber/overrides/rails_stdout_logging"
5
6
 
6
7
  # Base (must come first, order matters)
@@ -17,5 +17,9 @@ module Timber
17
17
  def to_msgpack(*args)
18
18
  as_json.to_msgpack(*args)
19
19
  end
20
+
21
+ def to_s
22
+ message
23
+ end
20
24
  end
21
25
  end
@@ -1,3 +1,3 @@
1
1
  module Timber
2
- VERSION = "1.1.9"
2
+ VERSION = "1.1.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timber
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timber Technologies, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-24 00:00:00.000000000 Z
11
+ date: 2017-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack