semantic_logger 3.4.1 → 4.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -0
  3. data/Rakefile +4 -8
  4. data/lib/semantic_logger.rb +2 -31
  5. data/lib/semantic_logger/appender.rb +76 -0
  6. data/lib/semantic_logger/appender/bugsnag.rb +3 -8
  7. data/lib/semantic_logger/appender/file.rb +1 -1
  8. data/lib/semantic_logger/appender/honeybadger.rb +1 -1
  9. data/lib/semantic_logger/appender/http.rb +1 -1
  10. data/lib/semantic_logger/appender/mongodb.rb +30 -28
  11. data/lib/semantic_logger/appender/sentry.rb +2 -2
  12. data/lib/semantic_logger/appender/splunk_http.rb +4 -4
  13. data/lib/semantic_logger/appender/syslog.rb +2 -2
  14. data/lib/semantic_logger/appender/tcp.rb +9 -5
  15. data/lib/semantic_logger/appender/udp.rb +1 -0
  16. data/lib/semantic_logger/base.rb +73 -140
  17. data/lib/semantic_logger/core_ext/thread.rb +4 -1
  18. data/lib/semantic_logger/formatters/color.rb +7 -0
  19. data/lib/semantic_logger/formatters/default.rb +7 -0
  20. data/lib/semantic_logger/formatters/syslog.rb +1 -1
  21. data/lib/semantic_logger/log.rb +115 -12
  22. data/lib/semantic_logger/logger.rb +6 -215
  23. data/lib/semantic_logger/metrics/new_relic.rb +1 -1
  24. data/lib/semantic_logger/metrics/statsd.rb +5 -1
  25. data/lib/semantic_logger/metrics/udp.rb +80 -0
  26. data/lib/semantic_logger/processor.rb +235 -0
  27. data/lib/semantic_logger/semantic_logger.rb +36 -65
  28. data/lib/semantic_logger/subscriber.rb +2 -2
  29. data/lib/semantic_logger/version.rb +1 -1
  30. data/test/appender/bugsnag_test.rb +10 -9
  31. data/test/appender/elasticsearch_test.rb +3 -2
  32. data/test/appender/graylog_test.rb +4 -3
  33. data/test/appender/honeybadger_test.rb +2 -2
  34. data/test/appender/http_test.rb +3 -2
  35. data/test/appender/mongodb_test.rb +24 -23
  36. data/test/appender/new_relic_test.rb +15 -8
  37. data/test/appender/sentry_test.rb +2 -2
  38. data/test/appender/splunk_http_test.rb +8 -7
  39. data/test/appender/splunk_test.rb +6 -5
  40. data/test/appender/tcp_test.rb +3 -4
  41. data/test/appender/udp_test.rb +4 -5
  42. data/test/appender/wrapper_test.rb +37 -38
  43. data/test/concerns/compatibility_test.rb +2 -2
  44. data/test/loggable_test.rb +1 -1
  45. data/test/logger_test.rb +149 -528
  46. data/test/measure_test.rb +249 -0
  47. data/test/semantic_logger_test.rb +257 -0
  48. metadata +24 -16
metadata CHANGED
@@ -1,30 +1,31 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: semantic_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.1
4
+ version: 4.0.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reid Morrison
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2017-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: concurrent-ruby
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - "~>"
17
18
  - !ruby/object:Gem::Version
18
19
  version: '1.0'
19
- name: concurrent-ruby
20
- prerelease: false
21
20
  type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
- description: Next generation logging system for Ruby to support highly concurrent, high throughput, low latency enterprise systems
27
+ description: Next generation logging system for Ruby to support highly concurrent,
28
+ high throughput, low latency enterprise systems
28
29
  email:
29
30
  - reidmo@gmail.com
30
31
  executables: []
@@ -36,6 +37,7 @@ files:
36
37
  - Rakefile
37
38
  - lib/semantic_logger.rb
38
39
  - lib/semantic_logger/ansi_colors.rb
40
+ - lib/semantic_logger/appender.rb
39
41
  - lib/semantic_logger/appender/bugsnag.rb
40
42
  - lib/semantic_logger/appender/elasticsearch.rb
41
43
  - lib/semantic_logger/appender/file.rb
@@ -67,6 +69,8 @@ files:
67
69
  - lib/semantic_logger/logger.rb
68
70
  - lib/semantic_logger/metrics/new_relic.rb
69
71
  - lib/semantic_logger/metrics/statsd.rb
72
+ - lib/semantic_logger/metrics/udp.rb
73
+ - lib/semantic_logger/processor.rb
70
74
  - lib/semantic_logger/semantic_logger.rb
71
75
  - lib/semantic_logger/subscriber.rb
72
76
  - lib/semantic_logger/version.rb
@@ -90,13 +94,15 @@ files:
90
94
  - test/debug_as_trace_logger_test.rb
91
95
  - test/loggable_test.rb
92
96
  - test/logger_test.rb
97
+ - test/measure_test.rb
93
98
  - test/mock_logger.rb
99
+ - test/semantic_logger_test.rb
94
100
  - test/test_helper.rb
95
101
  homepage: https://github.com/rocketjob/semantic_logger
96
102
  licenses:
97
103
  - Apache-2.0
98
104
  metadata: {}
99
- post_install_message:
105
+ post_install_message:
100
106
  rdoc_options: []
101
107
  require_paths:
102
108
  - lib
@@ -104,24 +110,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
110
  requirements:
105
111
  - - ">="
106
112
  - !ruby/object:Gem::Version
107
- version: '0'
113
+ version: '2.1'
108
114
  required_rubygems_version: !ruby/object:Gem::Requirement
109
115
  requirements:
110
- - - ">="
116
+ - - ">"
111
117
  - !ruby/object:Gem::Version
112
- version: '0'
118
+ version: 1.3.1
113
119
  requirements: []
114
- rubyforge_project:
120
+ rubyforge_project:
115
121
  rubygems_version: 2.6.8
116
- signing_key:
122
+ signing_key:
117
123
  specification_version: 4
118
124
  summary: Scalable, next generation enterprise logging for Ruby
119
125
  test_files:
120
- - test/debug_as_trace_logger_test.rb
121
- - test/loggable_test.rb
122
- - test/logger_test.rb
123
- - test/mock_logger.rb
124
- - test/test_helper.rb
125
126
  - test/appender/bugsnag_test.rb
126
127
  - test/appender/elasticsearch_test.rb
127
128
  - test/appender/file_test.rb
@@ -139,3 +140,10 @@ test_files:
139
140
  - test/appender/udp_test.rb
140
141
  - test/appender/wrapper_test.rb
141
142
  - test/concerns/compatibility_test.rb
143
+ - test/debug_as_trace_logger_test.rb
144
+ - test/loggable_test.rb
145
+ - test/logger_test.rb
146
+ - test/measure_test.rb
147
+ - test/mock_logger.rb
148
+ - test/semantic_logger_test.rb
149
+ - test/test_helper.rb