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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/semantic_logger.rb +29 -13
  4. data/lib/semantic_logger/ansi_colors.rb +27 -0
  5. data/lib/semantic_logger/appender/base.rb +54 -128
  6. data/lib/semantic_logger/appender/bugsnag.rb +29 -19
  7. data/lib/semantic_logger/appender/elasticsearch.rb +9 -9
  8. data/lib/semantic_logger/appender/file.rb +40 -18
  9. data/lib/semantic_logger/appender/graylog.rb +30 -26
  10. data/lib/semantic_logger/appender/http.rb +14 -19
  11. data/lib/semantic_logger/appender/mongodb.rb +20 -20
  12. data/lib/semantic_logger/appender/new_relic.rb +15 -15
  13. data/lib/semantic_logger/appender/splunk.rb +1 -1
  14. data/lib/semantic_logger/appender/splunk_http.rb +28 -25
  15. data/lib/semantic_logger/appender/syslog.rb +41 -42
  16. data/lib/semantic_logger/appender/wrapper.rb +19 -17
  17. data/lib/semantic_logger/base.rb +57 -32
  18. data/lib/semantic_logger/concerns/compatibility.rb +51 -0
  19. data/lib/semantic_logger/debug_as_trace_logger.rb +6 -2
  20. data/lib/semantic_logger/formatters/color.rb +66 -0
  21. data/lib/semantic_logger/formatters/default.rb +39 -0
  22. data/lib/semantic_logger/formatters/json.rb +16 -0
  23. data/lib/semantic_logger/jruby/garbage_collection_logger.rb +1 -1
  24. data/lib/semantic_logger/log.rb +13 -8
  25. data/lib/semantic_logger/loggable.rb +2 -2
  26. data/lib/semantic_logger/logger.rb +18 -13
  27. data/lib/semantic_logger/metrics/new_relic.rb +18 -0
  28. data/lib/semantic_logger/metrics/statsd.rb +48 -0
  29. data/lib/semantic_logger/semantic_logger.rb +122 -55
  30. data/lib/semantic_logger/version.rb +1 -1
  31. data/test/appender/bugsnag_test.rb +12 -3
  32. data/test/appender/mongodb_test.rb +6 -5
  33. data/test/appender/new_relic_test.rb +1 -1
  34. data/test/appender/splunk_http_test.rb +1 -0
  35. data/test/concerns/compatibility_test.rb +106 -0
  36. data/test/debug_as_trace_logger_test.rb +1 -1
  37. data/test/loggable_test.rb +1 -1
  38. data/test/logger_test.rb +183 -24
  39. 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.1
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-10 00:00:00.000000000 Z
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 License V2.0
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