timber 1.1.9 → 1.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -12
- data/lib/timber.rb +1 -0
- data/lib/timber/event.rb +4 -0
- data/lib/timber/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf8ca0fa8a0c433dbcc8e9579f709251a505acb2
|
4
|
+
data.tar.gz: 0f68b1ff1a44242ae1ea2cbc0deafca22f13aa47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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>
|
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)
|
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>
|
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>
|
181
|
+
<details><summary><strong>Timing events</strong></summary><p>
|
188
182
|
|
189
|
-
Timings
|
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
|
data/lib/timber.rb
CHANGED
data/lib/timber/event.rb
CHANGED
data/lib/timber/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|