semantic_logger 3.0.1 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/semantic_logger.rb +29 -13
- data/lib/semantic_logger/ansi_colors.rb +27 -0
- data/lib/semantic_logger/appender/base.rb +54 -128
- data/lib/semantic_logger/appender/bugsnag.rb +29 -19
- data/lib/semantic_logger/appender/elasticsearch.rb +9 -9
- data/lib/semantic_logger/appender/file.rb +40 -18
- data/lib/semantic_logger/appender/graylog.rb +30 -26
- data/lib/semantic_logger/appender/http.rb +14 -19
- data/lib/semantic_logger/appender/mongodb.rb +20 -20
- data/lib/semantic_logger/appender/new_relic.rb +15 -15
- data/lib/semantic_logger/appender/splunk.rb +1 -1
- data/lib/semantic_logger/appender/splunk_http.rb +28 -25
- data/lib/semantic_logger/appender/syslog.rb +41 -42
- data/lib/semantic_logger/appender/wrapper.rb +19 -17
- data/lib/semantic_logger/base.rb +57 -32
- data/lib/semantic_logger/concerns/compatibility.rb +51 -0
- data/lib/semantic_logger/debug_as_trace_logger.rb +6 -2
- data/lib/semantic_logger/formatters/color.rb +66 -0
- data/lib/semantic_logger/formatters/default.rb +39 -0
- data/lib/semantic_logger/formatters/json.rb +16 -0
- data/lib/semantic_logger/jruby/garbage_collection_logger.rb +1 -1
- data/lib/semantic_logger/log.rb +13 -8
- data/lib/semantic_logger/loggable.rb +2 -2
- data/lib/semantic_logger/logger.rb +18 -13
- data/lib/semantic_logger/metrics/new_relic.rb +18 -0
- data/lib/semantic_logger/metrics/statsd.rb +48 -0
- data/lib/semantic_logger/semantic_logger.rb +122 -55
- data/lib/semantic_logger/version.rb +1 -1
- data/test/appender/bugsnag_test.rb +12 -3
- data/test/appender/mongodb_test.rb +6 -5
- data/test/appender/new_relic_test.rb +1 -1
- data/test/appender/splunk_http_test.rb +1 -0
- data/test/concerns/compatibility_test.rb +106 -0
- data/test/debug_as_trace_logger_test.rb +1 -1
- data/test/loggable_test.rb +1 -1
- data/test/logger_test.rb +183 -24
- metadata +12 -3
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: semantic_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Reid Morrison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|
@@ -36,6 +36,7 @@ files:
|
|
36
36
|
- README.md
|
37
37
|
- Rakefile
|
38
38
|
- lib/semantic_logger.rb
|
39
|
+
- lib/semantic_logger/ansi_colors.rb
|
39
40
|
- lib/semantic_logger/appender/base.rb
|
40
41
|
- lib/semantic_logger/appender/bugsnag.rb
|
41
42
|
- lib/semantic_logger/appender/elasticsearch.rb
|
@@ -49,12 +50,18 @@ files:
|
|
49
50
|
- lib/semantic_logger/appender/syslog.rb
|
50
51
|
- lib/semantic_logger/appender/wrapper.rb
|
51
52
|
- lib/semantic_logger/base.rb
|
53
|
+
- lib/semantic_logger/concerns/compatibility.rb
|
52
54
|
- lib/semantic_logger/core_ext/thread.rb
|
53
55
|
- lib/semantic_logger/debug_as_trace_logger.rb
|
56
|
+
- lib/semantic_logger/formatters/color.rb
|
57
|
+
- lib/semantic_logger/formatters/default.rb
|
58
|
+
- lib/semantic_logger/formatters/json.rb
|
54
59
|
- lib/semantic_logger/jruby/garbage_collection_logger.rb
|
55
60
|
- lib/semantic_logger/log.rb
|
56
61
|
- lib/semantic_logger/loggable.rb
|
57
62
|
- lib/semantic_logger/logger.rb
|
63
|
+
- lib/semantic_logger/metrics/new_relic.rb
|
64
|
+
- lib/semantic_logger/metrics/statsd.rb
|
58
65
|
- lib/semantic_logger/semantic_logger.rb
|
59
66
|
- lib/semantic_logger/version.rb
|
60
67
|
- test/appender/bugsnag_test.rb
|
@@ -69,6 +76,7 @@ files:
|
|
69
76
|
- test/appender/splunk_test.rb
|
70
77
|
- test/appender/syslog_test.rb
|
71
78
|
- test/appender/wrapper_test.rb
|
79
|
+
- test/concerns/compatibility_test.rb
|
72
80
|
- test/debug_as_trace_logger_test.rb
|
73
81
|
- test/loggable_test.rb
|
74
82
|
- test/logger_test.rb
|
@@ -76,7 +84,7 @@ files:
|
|
76
84
|
- test/test_helper.rb
|
77
85
|
homepage: https://github.com/rocketjob/semantic_logger
|
78
86
|
licenses:
|
79
|
-
- Apache
|
87
|
+
- Apache-2.0
|
80
88
|
metadata: {}
|
81
89
|
post_install_message:
|
82
90
|
rdoc_options: []
|
@@ -111,6 +119,7 @@ test_files:
|
|
111
119
|
- test/appender/splunk_test.rb
|
112
120
|
- test/appender/syslog_test.rb
|
113
121
|
- test/appender/wrapper_test.rb
|
122
|
+
- test/concerns/compatibility_test.rb
|
114
123
|
- test/debug_as_trace_logger_test.rb
|
115
124
|
- test/loggable_test.rb
|
116
125
|
- test/logger_test.rb
|