log_runes 1.2 → 1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +1 -1
- data/lib/log_runes/logger_factory.rb +1 -0
- data/lib/log_runes/session_request_tagger.rb +3 -2
- data/lib/log_runes/version.rb +1 -1
- metadata +8 -10
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: f54761f7ab527fd7810f972392af32c8af63f519
|
4
|
+
data.tar.gz: 738d64b4b618a95b0877b63a77355577763be5bb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f31e1d1059b982d969cdba0766dc708a9191295db29b61f867179746ec211f330fae26831a21d3bd1aae057e7de814bd35008ecf836e0044df8e74439c06c8ad
|
7
|
+
data.tar.gz: 57829738c5d92b5f7a796192386db7441b64c3dc1cf52de232e8dc3358a61ad114885d80d57e917fe5a1bd267a25d7034196da2c13975f1a3feaa380a9845a9d
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ in a way that occupies a minimum of visual space but provides very useful debugg
|
|
6
6
|
For example, it is easy to grep for a single session's log output, or the log output for a complete
|
7
7
|
request, even if many requests are interleaved into the same log file.
|
8
8
|
|
9
|
-
Beyond the debugging capabilities,
|
9
|
+
Beyond the debugging capabilities, LogRunes tries to keep the log file output pleasant to work
|
10
10
|
with by only occupying 10 columns of text. It uses unicode to encode a full byte of data into each
|
11
11
|
column position in a visually clear way.
|
12
12
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module LogRunes
|
4
4
|
class SessionRequestTagger
|
5
|
-
|
5
|
+
|
6
6
|
# These glyphs should be chosen to maximize visual distinctiveness
|
7
7
|
# while being available in OSX terminal fonts.
|
8
8
|
|
@@ -42,7 +42,8 @@ class SessionRequestTagger
|
|
42
42
|
Proc.new do |req|
|
43
43
|
# Set the tag in the rack environment so it can be picked up by
|
44
44
|
# tools like Airbrake.
|
45
|
-
|
45
|
+
sess_id = req.cookies[Rails.application.config.session_options[:key]]
|
46
|
+
req.env['request_tag'] = signature(sess_id, req.uuid)
|
46
47
|
end
|
47
48
|
end
|
48
49
|
|
data/lib/log_runes/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log_runes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
5
|
-
prerelease:
|
4
|
+
version: '1.3'
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- wlipa
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-07-19 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: Encodes session and request ids into the Rails log output using Unicode
|
15
14
|
single-width characters, thereby using only a minimum amount of column width but
|
@@ -20,7 +19,7 @@ executables: []
|
|
20
19
|
extensions: []
|
21
20
|
extra_rdoc_files: []
|
22
21
|
files:
|
23
|
-
- .gitignore
|
22
|
+
- ".gitignore"
|
24
23
|
- Gemfile
|
25
24
|
- LICENSE.txt
|
26
25
|
- README.md
|
@@ -32,26 +31,25 @@ files:
|
|
32
31
|
- log_runes.gemspec
|
33
32
|
homepage: ''
|
34
33
|
licenses: []
|
34
|
+
metadata: {}
|
35
35
|
post_install_message:
|
36
36
|
rdoc_options: []
|
37
37
|
require_paths:
|
38
38
|
- lib
|
39
39
|
required_ruby_version: !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
40
|
requirements:
|
42
|
-
- -
|
41
|
+
- - ">="
|
43
42
|
- !ruby/object:Gem::Version
|
44
43
|
version: '0'
|
45
44
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
46
|
-
none: false
|
47
45
|
requirements:
|
48
|
-
- -
|
46
|
+
- - ">="
|
49
47
|
- !ruby/object:Gem::Version
|
50
48
|
version: '0'
|
51
49
|
requirements: []
|
52
50
|
rubyforge_project:
|
53
|
-
rubygems_version:
|
51
|
+
rubygems_version: 2.2.2
|
54
52
|
signing_key:
|
55
|
-
specification_version:
|
53
|
+
specification_version: 4
|
56
54
|
summary: Encodes session and request ids into the Rails log output for easy grepping
|
57
55
|
test_files: []
|