loggability 0.14.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +5 -5
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/History.rdoc +55 -0
  5. data/Manifest.txt +15 -4
  6. data/{README.rdoc → README.md} +78 -71
  7. data/Rakefile +5 -77
  8. data/lib/loggability.rb +19 -27
  9. data/lib/loggability/constants.rb +2 -2
  10. data/lib/loggability/formatter.rb +13 -67
  11. data/lib/loggability/formatter/color.rb +2 -2
  12. data/lib/loggability/formatter/default.rb +69 -6
  13. data/lib/loggability/formatter/html.rb +5 -5
  14. data/lib/loggability/formatter/structured.rb +35 -0
  15. data/lib/loggability/log_device.rb +86 -0
  16. data/lib/loggability/log_device/appending.rb +34 -0
  17. data/lib/loggability/log_device/datadog.rb +90 -0
  18. data/lib/loggability/log_device/file.rb +37 -0
  19. data/lib/loggability/log_device/http.rb +310 -0
  20. data/lib/loggability/logclient.rb +2 -1
  21. data/lib/loggability/logger.rb +45 -42
  22. data/lib/loggability/loghost.rb +2 -1
  23. data/lib/loggability/override.rb +2 -1
  24. data/lib/loggability/spechelpers.rb +1 -1
  25. data/spec/helpers.rb +6 -12
  26. data/spec/loggability/formatter/color_spec.rb +3 -7
  27. data/spec/loggability/formatter/default_spec.rb +50 -0
  28. data/spec/loggability/formatter/html_spec.rb +7 -7
  29. data/spec/loggability/formatter/structured_spec.rb +61 -0
  30. data/spec/loggability/formatter_spec.rb +42 -29
  31. data/spec/loggability/log_device/appending_spec.rb +27 -0
  32. data/spec/loggability/log_device/datadog_spec.rb +67 -0
  33. data/spec/loggability/log_device/file_spec.rb +27 -0
  34. data/spec/loggability/log_device/http_spec.rb +217 -0
  35. data/spec/loggability/logger_spec.rb +46 -5
  36. data/spec/loggability/loghost_spec.rb +3 -1
  37. data/spec/loggability/override_spec.rb +18 -5
  38. data/spec/loggability/spechelpers_spec.rb +3 -4
  39. data/spec/loggability_spec.rb +16 -13
  40. metadata +77 -105
  41. metadata.gz.sig +0 -0
  42. data/ChangeLog +0 -621
@@ -1,4 +1,6 @@
1
- #!/usr/bin/env rspec -cfd
1
+ # -*- ruby -*-
2
+ # vim: set nosta noet ts=4 sw=4:
3
+ # frozen_string_literal: true
2
4
 
3
5
  require_relative '../helpers'
4
6
 
@@ -1,11 +1,9 @@
1
- # -*- rspec -*-
1
+ # -*- ruby -*-
2
+ # vim: set nosta noet ts=4 sw=4:
3
+ # frozen_string_literal: true
2
4
 
3
5
  require_relative '../helpers'
4
6
 
5
- require 'tempfile'
6
- require 'rspec'
7
-
8
- require 'loggability/logger'
9
7
  require 'loggability/override'
10
8
 
11
9
 
@@ -46,6 +44,21 @@ describe Loggability::Override do
46
44
  end
47
45
 
48
46
 
47
+ it "can be inspected" do
48
+ expect( override.inspect ).
49
+ to match( %r(
50
+ #<
51
+ #{described_class.name}
52
+ :
53
+ 0x\p{Xdigit}+
54
+ \s
55
+ formatter:\s-,\slevel:\s-,\soutput:\s-,\s
56
+ affecting\sall\slog\shosts
57
+ >
58
+ )x )
59
+ end
60
+
61
+
49
62
  it "can mutate itself into a variant that modifies the logging level" do
50
63
  log = []
51
64
 
@@ -1,10 +1,9 @@
1
- # -*- rspec -*-
1
+ # -*- ruby -*-
2
+ # vim: set nosta noet ts=4 sw=4:
3
+ # frozen_string_literal: true
2
4
 
3
5
  require_relative '../helpers'
4
6
 
5
- require 'tempfile'
6
- require 'rspec'
7
-
8
7
  require 'loggability/spechelpers'
9
8
 
10
9
 
@@ -1,4 +1,6 @@
1
- # -*- rspec -*-
1
+ # -*- ruby -*-
2
+ # vim: set nosta noet ts=4 sw=4:
3
+ # frozen_string_literal: true
2
4
 
3
5
  require_relative 'helpers'
4
6
 
@@ -21,18 +23,6 @@ describe Loggability do
21
23
  end
22
24
 
23
25
 
24
- describe "version methods" do
25
- it "returns a version string if asked" do
26
- expect( described_class.version_string ).to match( /\w+ [\d.]+/ )
27
- end
28
-
29
- it "returns a version string with a build number if asked" do
30
- expect( described_class.version_string(true) ).
31
- to match(/\w+ [\d.]+ \(build [[:xdigit:]]+\)/)
32
- end
33
- end
34
-
35
-
36
26
  context "installed in a class as a log host" do
37
27
 
38
28
  before( :each ) do
@@ -171,6 +161,12 @@ describe Loggability do
171
161
  expect( Loggability[loghost].logdev.dev ).to be( $stdout )
172
162
  end
173
163
 
164
+ it "can propagate an outputter with arguments to every loghost" do
165
+ Loggability.output_to( :http, 'http://localhost:12771/v1/logs' )
166
+ expect( Loggability[loghost].logdev ).to be_a( Loggability::LogDevice )
167
+ expect( Loggability[loghost].logdev.endpoint ).to eq( URI('http://localhost:12771/v1/logs') )
168
+ end
169
+
174
170
  it "can propagate a formatter to every loghost" do
175
171
  Loggability.format_with( :color )
176
172
  expect( Loggability[loghost].formatter ).to be_a( Loggability::Formatter::Color )
@@ -376,6 +372,13 @@ describe Loggability do
376
372
  expect( result ).to eq([ 'info', 'html', '/usr/local/www/htdocs/log.html' ])
377
373
  end
378
374
 
375
+ it 'can parse a logging confi spec with a severity, a http service name with its api key' do
376
+ result = Loggability.parse_config_spec('warn datadog[datadog_api_key]: (Color)')
377
+ expect( result[0] ).to eq( 'warn' )
378
+ expect( result[1] ).to eq( 'Color' )
379
+ expect( result[2].first ).to be_instance_of( Loggability::LogDevice::Datadog )
380
+ end
381
+
379
382
  it "can configure loghosts via its ::configure method" do
380
383
  config = {'class1' => 'debug (html)', 'class2' => 'error spec-error.log'}
381
384
  Loggability.configure( config )
metadata CHANGED
@@ -1,180 +1,135 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loggability
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIEbDCCAtSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA+MQwwCgYDVQQDDANn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Bm+16A4aEe3XdZBRNmtOu/g81gvwA7fkJHKllJuaI
22
+ dXzdHqq+zbGZVSQ7pRYHYomD0IiDe1DbIouFnPWmagaBnGHwXkDT2bKKP+s2v21m
23
+ ozilJg4aar2okb/RA6VS87o+d7g6LpDDMMQjH4G9OPnJENLdhu8KnPw/ivSVvQw7
24
+ N2I4L/ZOIe2DIVuYH7aLHfjZDQv/mNgpAgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYD
25
+ VR0PBAQDAgSwMB0GA1UdDgQWBBRyjf55EbrHagiRLqt5YAd3yb8k4DANBgkqhkiG
26
+ 9w0BAQsFAAOCAYEAMYegZanJi8zq7QKPT7wqXefX4C88I5JWeBHR3PvvWK0CwyMV
27
+ peyiu5I13w/lYX+HUZjE4qsSpJMJFXWl4WZCOo+AMprOcf0PxfuJpxCej5D4tavf
28
+ vRfhahSw7XJrcZih/3J+/UgoH7R05MJ+8LTcy3HGrB3a0vTafjm8OY7Xpa0LJDoN
29
+ JDqxK321VIHyTibbKeA1hWSE6ljlQDvFbTqiCj3Ulp1jTv3TOlvRl8fqcfhxUJI0
30
+ +5Q82jJODjEN+GaWs0V+NlrbU94cXwS2PH5dXogftB5YYA5Ex8A0ikZ73xns4Hdo
31
+ XxdLdd92F5ovxA23j/rKe/IDwqr6FpDkU3nPXH/Qp0TVGv9zZnVJc/Z6ChkuWj8z
32
+ pW7JAyyiiHZgKKDReDrA2LA7Zs3o/7KA6UtUH0FHf8LYhcK+pfHk6RtjRe65ffw+
33
+ MCh97sQ/Z/MOusb5+QddBmB+k8EicXyGNl4b5L4XpL7fIQu+Y96TB3JEJlShxFD9
34
+ k9FjI4d9EP54gS/4
37
35
  -----END CERTIFICATE-----
38
- date: 2017-02-06 00:00:00.000000000 Z
36
+ date: 2020-12-24 00:00:00.000000000 Z
39
37
  dependencies:
40
38
  - !ruby/object:Gem::Dependency
41
- name: hoe-mercurial
39
+ name: rake-deveiate
42
40
  requirement: !ruby/object:Gem::Requirement
43
41
  requirements:
44
42
  - - "~>"
45
43
  - !ruby/object:Gem::Version
46
- version: '1.4'
47
- type: :development
48
- prerelease: false
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - "~>"
52
- - !ruby/object:Gem::Version
53
- version: '1.4'
54
- - !ruby/object:Gem::Dependency
55
- name: hoe-deveiate
56
- requirement: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - "~>"
59
- - !ruby/object:Gem::Version
60
- version: '0.8'
61
- type: :development
62
- prerelease: false
63
- version_requirements: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '0.8'
68
- - !ruby/object:Gem::Dependency
69
- name: hoe-highline
70
- requirement: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: '0.2'
44
+ version: '0.7'
75
45
  type: :development
76
46
  prerelease: false
77
47
  version_requirements: !ruby/object:Gem::Requirement
78
48
  requirements:
79
49
  - - "~>"
80
50
  - !ruby/object:Gem::Version
81
- version: '0.2'
51
+ version: '0.7'
82
52
  - !ruby/object:Gem::Dependency
83
- name: hoe-bundler
53
+ name: simplecov
84
54
  requirement: !ruby/object:Gem::Requirement
85
55
  requirements:
86
56
  - - "~>"
87
57
  - !ruby/object:Gem::Version
88
- version: '1.2'
58
+ version: '0.7'
89
59
  type: :development
90
60
  prerelease: false
91
61
  version_requirements: !ruby/object:Gem::Requirement
92
62
  requirements:
93
63
  - - "~>"
94
64
  - !ruby/object:Gem::Version
95
- version: '1.2'
65
+ version: '0.7'
96
66
  - !ruby/object:Gem::Dependency
97
- name: simplecov
67
+ name: configurability
98
68
  requirement: !ruby/object:Gem::Requirement
99
69
  requirements:
100
70
  - - "~>"
101
71
  - !ruby/object:Gem::Version
102
- version: '0.7'
72
+ version: '4.0'
103
73
  type: :development
104
74
  prerelease: false
105
75
  version_requirements: !ruby/object:Gem::Requirement
106
76
  requirements:
107
77
  - - "~>"
108
78
  - !ruby/object:Gem::Version
109
- version: '0.7'
79
+ version: '4.0'
110
80
  - !ruby/object:Gem::Dependency
111
- name: configurability
81
+ name: timecop
112
82
  requirement: !ruby/object:Gem::Requirement
113
83
  requirements:
114
84
  - - "~>"
115
85
  - !ruby/object:Gem::Version
116
- version: '3.1'
86
+ version: '0.9'
117
87
  type: :development
118
88
  prerelease: false
119
89
  version_requirements: !ruby/object:Gem::Requirement
120
90
  requirements:
121
91
  - - "~>"
122
92
  - !ruby/object:Gem::Version
123
- version: '3.1'
93
+ version: '0.9'
124
94
  - !ruby/object:Gem::Dependency
125
- name: rdoc
95
+ name: rdoc-generator-fivefish
126
96
  requirement: !ruby/object:Gem::Requirement
127
97
  requirements:
128
98
  - - "~>"
129
99
  - !ruby/object:Gem::Version
130
- version: '4.0'
100
+ version: '0.4'
131
101
  type: :development
132
102
  prerelease: false
133
103
  version_requirements: !ruby/object:Gem::Requirement
134
104
  requirements:
135
105
  - - "~>"
136
106
  - !ruby/object:Gem::Version
137
- version: '4.0'
107
+ version: '0.4'
138
108
  - !ruby/object:Gem::Dependency
139
- name: hoe
109
+ name: concurrent-ruby
140
110
  requirement: !ruby/object:Gem::Requirement
141
111
  requirements:
142
112
  - - "~>"
143
113
  - !ruby/object:Gem::Version
144
- version: '3.15'
114
+ version: '1.1'
145
115
  type: :development
146
116
  prerelease: false
147
117
  version_requirements: !ruby/object:Gem::Requirement
148
118
  requirements:
149
119
  - - "~>"
150
120
  - !ruby/object:Gem::Version
151
- version: '3.15'
152
- description: "A composable logging system built on the standard Logger library.\n\nYou
153
- can add Loggability to large libraries and systems, then hook everything\nup later
154
- when you know where you want logs to be written, at what level of\nseverity, and
155
- in which format.\n\nAn example:\n\n # Load a bunch of libraries that use Loggability\n
156
- \ require 'strelka'\n require 'inversion'\n require 'treequel'\n require
157
- 'loggability'\n \n # Set up our own library\n module MyProject\n extend
158
- Loggability\n log_as :my_project\n \n class Server\n extend
159
- Loggability\n log_to :my_project\n \n def initialize\n
160
- \ self.log.debug \"Listening.\"\n end\n end\n \n
161
- \ end\n \n # Now tell everything that's using Loggability to log to an HTML\n
162
- \ # log file at INFO level\n Loggability.write_to( '/usr/local/www/htdocs/log.html'
163
- )\n Loggability.format_as( :html )\n Loggability.level = :info"
121
+ version: '1.1'
122
+ description: A composable logging system built on the standard Logger library.
164
123
  email:
165
- - ged@FaerieMUD.org
124
+ - ged@faeriemud.org
166
125
  executables: []
167
126
  extensions: []
168
- extra_rdoc_files:
169
- - History.rdoc
170
- - Manifest.txt
171
- - README.rdoc
127
+ extra_rdoc_files: []
172
128
  files:
173
129
  - ".simplecov"
174
- - ChangeLog
175
130
  - History.rdoc
176
131
  - Manifest.txt
177
- - README.rdoc
132
+ - README.md
178
133
  - Rakefile
179
134
  - lib/loggability.rb
180
135
  - lib/loggability/constants.rb
@@ -182,6 +137,12 @@ files:
182
137
  - lib/loggability/formatter/color.rb
183
138
  - lib/loggability/formatter/default.rb
184
139
  - lib/loggability/formatter/html.rb
140
+ - lib/loggability/formatter/structured.rb
141
+ - lib/loggability/log_device.rb
142
+ - lib/loggability/log_device/appending.rb
143
+ - lib/loggability/log_device/datadog.rb
144
+ - lib/loggability/log_device/file.rb
145
+ - lib/loggability/log_device/http.rb
185
146
  - lib/loggability/logclient.rb
186
147
  - lib/loggability/logger.rb
187
148
  - lib/loggability/loghost.rb
@@ -189,37 +150,48 @@ files:
189
150
  - lib/loggability/spechelpers.rb
190
151
  - spec/helpers.rb
191
152
  - spec/loggability/formatter/color_spec.rb
153
+ - spec/loggability/formatter/default_spec.rb
192
154
  - spec/loggability/formatter/html_spec.rb
155
+ - spec/loggability/formatter/structured_spec.rb
193
156
  - spec/loggability/formatter_spec.rb
157
+ - spec/loggability/log_device/appending_spec.rb
158
+ - spec/loggability/log_device/datadog_spec.rb
159
+ - spec/loggability/log_device/file_spec.rb
160
+ - spec/loggability/log_device/http_spec.rb
194
161
  - spec/loggability/logger_spec.rb
195
162
  - spec/loggability/loghost_spec.rb
196
163
  - spec/loggability/override_spec.rb
197
164
  - spec/loggability/spechelpers_spec.rb
198
165
  - spec/loggability_spec.rb
199
- homepage: http://deveiate.org/projects/loggability
166
+ homepage: https://hg.sr.ht/~ged/Loggability
200
167
  licenses:
201
- - Ruby
202
- metadata: {}
203
- post_install_message:
204
- rdoc_options:
205
- - "--main"
206
- - README.rdoc
168
+ - BSD-3-Clause
169
+ metadata:
170
+ homepage_uri: https://hg.sr.ht/~ged/Loggability
171
+ documentation_uri: https://deveiate.org/code/loggability
172
+ changelog_uri: https://deveiate.org/code/loggability/History_md.html
173
+ source_uri: https://hg.sr.ht/~ged/Loggability/browse
174
+ bug_tracker_uri: https://todo.sr.ht/~ged/Loggability/browse
175
+ post_install_message:
176
+ rdoc_options: []
207
177
  require_paths:
208
178
  - lib
209
179
  required_ruby_version: !ruby/object:Gem::Requirement
210
180
  requirements:
211
- - - ">="
181
+ - - "~>"
182
+ - !ruby/object:Gem::Version
183
+ version: '2.5'
184
+ - - "~>"
212
185
  - !ruby/object:Gem::Version
213
- version: 1.9.3
186
+ version: '3.0'
214
187
  required_rubygems_version: !ruby/object:Gem::Requirement
215
188
  requirements:
216
189
  - - ">="
217
190
  - !ruby/object:Gem::Version
218
191
  version: '0'
219
192
  requirements: []
220
- rubyforge_project:
221
- rubygems_version: 2.6.8
222
- signing_key:
193
+ rubygems_version: 3.2.2
194
+ signing_key:
223
195
  specification_version: 4
224
- summary: A composable logging system built on the standard Logger library
196
+ summary: A composable logging system built on the standard Logger library.
225
197
  test_files: []
metadata.gz.sig CHANGED
Binary file
data/ChangeLog DELETED
@@ -1,621 +0,0 @@
1
- 2017-01-30 Michael Granger <ged@FaerieMUD.org>
2
-
3
- * README.rdoc, lib/loggability.rb, lib/loggability/override.rb,
4
- loggability.gemspec, spec/loggability/override_spec.rb,
5
- spec/loggability_spec.rb:
6
- Allow overriding log hosts for a block
7
- [f8dc613a7b78] [tip]
8
-
9
- 2017-01-16 Michael Granger <ged@FaerieMUD.org>
10
-
11
- * Merge with 5a726b7f87db
12
- [f155ecfa1599] [github/master]
13
-
14
- * README.md:
15
- Backing out bitbucket README crap
16
- [bdf3a19c7bd5]
17
-
18
- 2016-12-28 Michael Granger <ged@faeriemud.org>
19
-
20
- * README.md:
21
- README.md edited online with Bitbucket
22
- [a70fe4d1f1ce]
23
-
24
- 2017-01-16 Mahlon E. Smith <mahlon@martini.nu>
25
-
26
- * .hgsigs, .hgtags:
27
- Merge accidental branching.
28
- [5a726b7f87db]
29
-
30
- 2017-01-16 Mahlon E. Smith <mahlon@laika.com>
31
-
32
- * .hgtags:
33
- Added tag v0.13.0 for changeset 9dadd26fcb41
34
- [f1b3d8191c22]
35
-
36
- * .hgsigs:
37
- Added signature for changeset 2676e38c8850
38
- [9dadd26fcb41] [v0.13.0]
39
-
40
- * History.rdoc, Rakefile, lib/loggability.rb:
41
- Just a bump for the Configurability dependency.
42
- [2676e38c8850]
43
-
44
- 2016-12-28 Michael Granger <ged@FaerieMUD.org>
45
-
46
- * .hgtags:
47
- Added tag v0.12.0 for changeset afbc62f64869
48
- [724e4945be75]
49
-
50
- * .hgsigs:
51
- Added signature for changeset f4e0960bd29c
52
- [afbc62f64869] [v0.12.0]
53
-
54
- 2016-12-14 Michael Granger <ged@FaerieMUD.org>
55
-
56
- * .hgignore, History.rdoc, Manifest.txt, Rakefile, lib/loggability.rb,
57
- loggability.gemspec:
58
- Bump minor version, update history file.
59
- [f4e0960bd29c]
60
-
61
- * lib/loggability/loghost.rb, spec/loggability/loghost_spec.rb:
62
- Re-fix the losthost inheritance thing the right way
63
- [a7afccbe2995]
64
-
65
- * .gems, .ruby-gemset, .ruby-version, .rvm.gems, .rvmrc:
66
- Switch to generic ruby version manager files
67
- [fdaab783b02d]
68
-
69
- 2016-12-12 Michael Granger <ged@FaerieMUD.org>
70
-
71
- * certs/ged.pem:
72
- Add my gem-signing cert
73
- [8460717ef6cf]
74
-
75
- * README.rdoc:
76
- Update copyright dates in the README.
77
- [42bfd41f3982]
78
-
79
- * lib/loggability.rb, spec/loggability/override_spec.rb,
80
- spec/loggability_spec.rb:
81
- Fix configuration so it's applied more consistently
82
- [6379f2040f92]
83
-
84
- * lib/loggability/loghost.rb:
85
- Don't make classes that inherit loghosts their own loghosts
86
- [e5f55d8d0f97]
87
-
88
- 2016-08-02 Michael Granger <ged@FaerieMUD.org>
89
-
90
- * lib/loggability.rb, spec/loggability_spec.rb:
91
- Post-configure log hosts created after config is loaded
92
- [ac36738fd7ee]
93
-
94
- 2015-03-01 Michael Granger <ged@FaerieMUD.org>
95
-
96
- * Manifest.txt, lib/loggability/logclient.rb, loggability.gemspec,
97
- spec/loggability_spec.rb:
98
- Clear the log proxy for duped/cloned log clients
99
- [a572fbf8440b]
100
-
101
- * Rakefile:
102
- Set the title on generated docs
103
- [433f9c68760f]
104
-
105
- 2015-02-27 Michael Granger <ged@FaerieMUD.org>
106
-
107
- * .hgignore, loggability.gemspec:
108
- Forgot to add the gemspec
109
- [13282fe8202d]
110
-
111
- * .rvmrc, .simplecov, .travis.yml, Gemfile, Rakefile:
112
- Prep for travis-ci builds
113
- [7c42a3ce53e6]
114
-
115
- * lib/loggability/formatter.rb, spec/loggability/formatter_spec.rb:
116
- Use the current thread's object ID and not the Thread class's
117
- [9d022ce39171]
118
-
119
- 2014-04-14 Michael Granger <ged@FaerieMUD.org>
120
-
121
- * .hgtags:
122
- Added tag v0.11.0 for changeset 430cb8049ae4
123
- [c26d488a0129]
124
-
125
- * .hgsigs:
126
- Added signature for changeset fa08d10cb3b6
127
- [430cb8049ae4] [v0.11.0]
128
-
129
- 2014-04-02 Michael Granger <ged@FaerieMUD.org>
130
-
131
- * History.rdoc, lib/loggability.rb:
132
- Bump the minor version, update history.
133
- [fa08d10cb3b6]
134
-
135
- * .hgignore, Rakefile, lib/loggability/logger.rb,
136
- lib/loggability/loghost.rb, spec/helpers.rb,
137
- spec/loggability/formatter/color_spec.rb,
138
- spec/loggability/formatter/html_spec.rb,
139
- spec/loggability/logger_spec.rb, spec/loggability/override_spec.rb:
140
- Fix a bug when a log host is subclassed.
141
-
142
- - Inheriting a log host now registers the subclass as its own log
143
- host.
144
- - Add a gemspec-building task.
145
- - Eliminated the last vestiges of deprecated RSpec syntax.
146
- [dc975db7ae50]
147
-
148
- 2014-03-24 Michael Granger <ged@FaerieMUD.org>
149
-
150
- * .hgtags:
151
- Added tag v0.10.1 for changeset ed0c5e115cac
152
- [ec646cc6977a]
153
-
154
- * .hgsigs:
155
- Added signature for changeset 24fd8762623d
156
- [ed0c5e115cac] [v0.10.1]
157
-
158
- * History.rdoc, lib/loggability.rb:
159
- Bump the patch version, update history.
160
- [24fd8762623d]
161
-
162
- * .rvm.gems, Gemfile, lib/loggability.rb, spec/loggability_spec.rb:
163
- Raise an exception when something attempts to use a non-existant log
164
- host.
165
- [bbbb41b5f199]
166
-
167
- 2014-02-04 Michael Granger <ged@FaerieMUD.org>
168
-
169
- * .hgtags:
170
- Added tag v0.10.0 for changeset 75f1eb53eefa
171
- [f87a413e30fd]
172
-
173
- * .hgsigs:
174
- Added signature for changeset b1250807b56e
175
- [75f1eb53eefa] [v0.10.0]
176
-
177
- * History.rdoc, lib/loggability.rb:
178
- Bump the minor version, update history.
179
- [b1250807b56e]
180
-
181
- * lib/loggability/logger.rb, spec/loggability/logger_spec.rb:
182
- Add a #write method to Loggability::Logger for Rack::CommonLogger
183
- compatibility.
184
- [b7911c961bb0]
185
-
186
- 2014-01-17 Michael Granger <ged@FaerieMUD.org>
187
-
188
- * .hgtags:
189
- Added tag v0.9.0 for changeset 6f90bce76e3b
190
- [978864d0a0f0]
191
-
192
- * .hgsigs:
193
- Added signature for changeset 05e0a87c92c7
194
- [6f90bce76e3b] [v0.9.0]
195
-
196
- * Gemfile:
197
- Update the Gemfile
198
- [05e0a87c92c7]
199
-
200
- 2014-01-08 Michael Granger <ged@FaerieMUD.org>
201
-
202
- * Rakefile:
203
- Use newer hoe plugin
204
- [5a465a2c0e79]
205
-
206
- * .rvm.gems:
207
- Update RVM gemset
208
- [ec28321ba712]
209
-
210
- * History.rdoc, lib/loggability.rb:
211
- Bump the minor version, update history.
212
- [469cf788e750]
213
-
214
- * spec/loggability/logger_spec.rb, spec/loggability/override_spec.rb,
215
- spec/loggability_spec.rb:
216
- Fix deprecated RSpec stuff
217
- [60116eaa175f]
218
-
219
- 2013-11-22 Michael Granger <ged@FaerieMUD.org>
220
-
221
- * Manifest.txt, README.rdoc, Rakefile, lib/loggability/spechelpers.rb,
222
- spec/helpers.rb, spec/loggability/spechelpers_spec.rb:
223
- Make the spechelpers a little more intelligent.
224
-
225
- - You no longer need to do setup_logging/reset_logging in a
226
- before(:all)/after(:all) block; that's done for you.
227
- - You can now override the logging level for any example group by
228
- adding 'logging' or 'log' metadata.
229
- - Fixed some documentation, added docs for the spec helpers.
230
- [c888220ef581]
231
-
232
- 2013-10-09 Michael Granger <ged@FaerieMUD.org>
233
-
234
- * .hgtags:
235
- Added tag v0.8.1 for changeset 9bf0ab5413b3
236
- [bfdae6012fa6]
237
-
238
- * .hgsigs:
239
- Added signature for changeset db603bf7b399
240
- [9bf0ab5413b3] [v0.8.1]
241
-
242
- * History.rdoc, lib/loggability.rb:
243
- Bump the patch version, update history.
244
- [db603bf7b399]
245
-
246
- * lib/loggability/override.rb, spec/loggability/override_spec.rb:
247
- Fix the problem with blocks not being called in chained overrides.
248
- [a3d578201547]
249
-
250
- 2013-10-07 Michael Granger <ged@FaerieMUD.org>
251
-
252
- * .hgtags:
253
- Added tag v0.8.0 for changeset 9e8338f511bf
254
- [d9e93e136b47]
255
-
256
- * .hgsigs:
257
- Added signature for changeset a4c6b86b7cbc
258
- [9e8338f511bf] [v0.8.0]
259
-
260
- * History.rdoc, lib/loggability.rb:
261
- Bump minor version, update history.
262
- [a4c6b86b7cbc]
263
-
264
- 2013-10-06 Michael Granger <ged@FaerieMUD.org>
265
-
266
- * .hgignore, Gemfile.lock:
267
- Remove generated file.
268
- [377006201c40]
269
-
270
- * loggability.gemspec:
271
- Remove generated file.
272
- [d18c5ee6d94a]
273
-
274
- * Manifest.txt, lib/loggability.rb, lib/loggability/override.rb,
275
- spec/loggability/override_spec.rb, spec/loggability_spec.rb:
276
- Fix some bugs in aggregated overrides.
277
-
278
- - Make cloning an override additive
279
- - Add missing ::with_level and ::formatted_with module methods to
280
- Loggability.
281
- - Clear overridden settings in dups of Override objects.
282
- - Update the manifest.
283
- [44b025b728e6]
284
-
285
- * README.rdoc, lib/loggability.rb, lib/loggability/logger.rb,
286
- lib/loggability/override.rb, spec/loggability/logger_spec.rb,
287
- spec/loggability/override_spec.rb, spec/loggability_spec.rb:
288
- Add mechanism for temporary aggregated overrides
289
- [a7d4b92e17f3]
290
-
291
- 2013-10-04 Michael Granger <ged@FaerieMUD.org>
292
-
293
- * Gemfile, Gemfile.lock, Rakefile, lib/loggability.rb,
294
- lib/loggability/logclient.rb, lib/loggability/loghost.rb,
295
- loggability.gemspec, spec/helpers.rb, spec/lib/helpers.rb,
296
- spec/loggability/formatter/color_spec.rb,
297
- spec/loggability/formatter/html_spec.rb,
298
- spec/loggability/formatter_spec.rb, spec/loggability/logger_spec.rb,
299
- spec/loggability_spec.rb:
300
- Update specs to use new RSpec syntax.
301
-
302
- - Split out LogHost and LogClient mixins into their own files
303
- - Added generated gemspec and Gemfile
304
- - Dropped support for Ruby < 1.9.3.
305
- [c67cab6ae3be]
306
-
307
- 2013-08-23 Michael Granger <ged@FaerieMUD.org>
308
-
309
- * .hgtags:
310
- Added tag v0.7.0 for changeset d0325195530a
311
- [6237423fc190]
312
-
313
- * .hgsigs:
314
- Added signature for changeset 7e7b1c51eb3e
315
- [d0325195530a] [v0.7.0]
316
-
317
- * History.rdoc, lib/loggability.rb:
318
- Bump minor version, update history.
319
- [7e7b1c51eb3e]
320
-
321
- * .rvm.gems, Rakefile, lib/loggability/logger.rb,
322
- spec/loggability/logger_spec.rb:
323
- Override Logger#<< to always append with formatting and level.
324
- [5404625dc822]
325
-
326
- 2013-06-07 Mahlon E. Smith <mahlon@martini.nu>
327
-
328
- * .hgtags:
329
- Added tag v0.6.1 for changeset f61e00b53f9d
330
- [26c3fbf32d31]
331
-
332
- * .hgsigs:
333
- Added signature for changeset 693e882b2e43
334
- [f61e00b53f9d] [v0.6.1]
335
-
336
- * History.rdoc:
337
- Update History file.
338
- [693e882b2e43]
339
-
340
- * Rakefile, lib/loggability.rb, spec/lib/helpers.rb,
341
- spec/loggability_spec.rb:
342
- Remove explicit loading of Configurability to avoid load order
343
- dependency issues.
344
- [27cc08ff66dc]
345
-
346
- 2013-03-15 Michael Granger <ged@FaerieMUD.org>
347
-
348
- * .hgtags:
349
- Added tag v0.6.0 for changeset 1d155d8069b5
350
- [4b93e1654b2c]
351
-
352
- * .hgsigs:
353
- Added signature for changeset 5475fac60ffb
354
- [1d155d8069b5] [v0.6.0]
355
-
356
- * History.rdoc, lib/loggability.rb:
357
- Bump minor version, update history.
358
- [5475fac60ffb]
359
-
360
- 2013-03-14 Michael Granger <ged@FaerieMUD.org>
361
-
362
- * bin/loggability:
363
- Remove stub bin/loggability binary
364
- [a74dbf110927]
365
-
366
- * .rvm.gems, .tm_properties, lib/loggability.rb,
367
- spec/loggability_spec.rb:
368
- Give instances of loghost classes logclient instance methods.
369
-
370
- - Reorganized the specs to separate loghost and logclient APIs
371
- - Rearranged the class/method declarations in loggability.rb.
372
- - Updated development dependencies.
373
- [a0ed85844756]
374
-
375
- 2013-02-25 Michael Granger <ged@FaerieMUD.org>
376
-
377
- * .rvmrc:
378
- Test under Ruby 2.0.0 by default.
379
- [8a951356ffb6]
380
-
381
- 2012-10-01 Michael Granger <ged@FaerieMUD.org>
382
-
383
- * Manifest.txt:
384
- Removing the bin/loggability stub binary.
385
- [f293013c3061]
386
-
387
- 2012-08-03 Michael Granger <ged@FaerieMUD.org>
388
-
389
- * .hgtags:
390
- Added tag v0.5.0 for changeset 7c52f83d7992
391
- [1fb0190d24b0]
392
-
393
- * .hgsigs:
394
- Added signature for changeset 0db162246900
395
- [7c52f83d7992] [v0.5.0]
396
-
397
- * History.rdoc, lib/loggability.rb:
398
- Bump minor version, update history.
399
- [0db162246900]
400
-
401
- * .rvm.gems, Rakefile, lib/loggability/formatter.rb,
402
- spec/loggability/formatter_spec.rb, spec/loggability_spec.rb:
403
- Remove dependency on PluginFactory/Pluggability to avoid circular
404
- dependency.
405
- [476b2ae85657]
406
-
407
- 2012-06-06 Michael Granger <ged@FaerieMUD.org>
408
-
409
- * .hgtags:
410
- Added tag v0.4.0 for changeset b5e9220fe7a9
411
- [740a4e834be2]
412
-
413
- * .hgsigs:
414
- Added signature for changeset 2615ed217d34
415
- [b5e9220fe7a9] [v0.4.0]
416
-
417
- * History.rdoc, lib/loggability.rb:
418
- Bump the minor version, update history.
419
- [2615ed217d34]
420
-
421
- * lib/loggability.rb, lib/loggability/logger.rb,
422
- spec/loggability/logger_spec.rb, spec/loggability_spec.rb:
423
- Add some conversion-convenience code.
424
-
425
- Auto-convert Logger instances into Loggability::Logger instances
426
- with the same device if assigned directly, etc.
427
- [943e0a67d246]
428
-
429
- 2012-05-26 Michael Granger <ged@FaerieMUD.org>
430
-
431
- * .hgtags:
432
- Added tag v0.3.0 for changeset 6c526d42bafb
433
- [581580843d12]
434
-
435
- * .hgsigs:
436
- Added signature for changeset 7b6ef57de872
437
- [6c526d42bafb] [v0.3.0]
438
-
439
- * History.rdoc, lib/loggability.rb:
440
- Bump the minor version, update history.
441
- [7b6ef57de872]
442
-
443
- * Manifest.txt, lib/loggability/spechelpers.rb, spec/lib/helpers.rb:
444
- Add Loggability::SpecHelpers for setting up logging in tests.
445
- [e9edf26e0c6a]
446
-
447
- 2012-05-22 Michael Granger <ged@FaerieMUD.org>
448
-
449
- * lib/loggability/formatter.rb, spec/loggability/formatter_spec.rb,
450
- spec/loggability/logger_spec.rb:
451
- Downcase the severity before outputting.
452
- [040bb1a5dc84]
453
-
454
- 2012-05-18 Michael Granger <ged@FaerieMUD.org>
455
-
456
- * .hgtags:
457
- Added tag v0.2.3 for changeset d221ee6a4c81
458
- [cc5441ff4666]
459
-
460
- * .hgsigs:
461
- Added signature for changeset 57511ffc4e23
462
- [d221ee6a4c81] [v0.2.3]
463
-
464
- * History.rdoc, lib/loggability.rb:
465
- Bumped patch version and updated history.
466
- [57511ffc4e23]
467
-
468
- * lib/loggability.rb, spec/loggability_spec.rb:
469
- Fix logging from subclasses of log clients.
470
-
471
- Thanks to Mahlon for spotting this and helping to track it down.
472
- [8b10cb643375]
473
-
474
- 2012-05-11 Michael Granger <ged@FaerieMUD.org>
475
-
476
- * .hgtags:
477
- Added tag v0.2.2 for changeset 7237a700fafc
478
- [a35c4d3abb52]
479
-
480
- * .hgsigs:
481
- Added signature for changeset e41140479376
482
- [7237a700fafc] [v0.2.2]
483
-
484
- * History.rdoc, lib/loggability.rb:
485
- Bump the patch version, update History.
486
- [e41140479376]
487
-
488
- * .tm_properties, lib/loggability.rb, lib/loggability/logger.rb:
489
- Log proxied Modules like Class objects, don't log config specs at
490
- errror.
491
- [72aefd428e62]
492
-
493
- 2012-05-10 Michael Granger <ged@FaerieMUD.org>
494
-
495
- * .hgtags:
496
- Added tag v0.2.1 for changeset cd911ef44cf0
497
- [9b09c935a496]
498
-
499
- * .hgsigs:
500
- Added signature for changeset 3d9dced14889
501
- [cd911ef44cf0] [v0.2.1]
502
-
503
- * History.rdoc, lib/loggability.rb:
504
- Bumped patch version, updated History.
505
- [3d9dced14889]
506
-
507
- * lib/loggability.rb, spec/loggability_spec.rb:
508
- Fix for configuration via Configurability::Config.
509
- [7eb1903dafa8]
510
-
511
- * .hgtags:
512
- Added tag v0.2.0 for changeset aa672f2fa207
513
- [6b09a660a076]
514
-
515
- * .hgsigs:
516
- Added signature for changeset 4c9840dcb9fd
517
- [aa672f2fa207] [v0.2.0]
518
-
519
- * History.rdoc, lib/loggability.rb:
520
- Fix 1.8 support.
521
- [4c9840dcb9fd]
522
-
523
- * .rvm.gems, README.rdoc, Rakefile, lib/loggability.rb,
524
- spec/lib/helpers.rb, spec/loggability/logger_spec.rb,
525
- spec/loggability_spec.rb:
526
- Add Configurability support.
527
- [555511f82876]
528
-
529
- * lib/loggability/logger.rb:
530
- Make Logger#inspect output a bit more terse
531
- [fbddf3595a38]
532
-
533
- 2012-05-08 Michael Granger <ged@FaerieMUD.org>
534
-
535
- * .hgtags:
536
- Added tag v0.1.0 for changeset 929216c0ffee
537
- [65953fe69af2]
538
-
539
- * .hgsigs:
540
- Added signature for changeset ea1633c450be
541
- [929216c0ffee] [v0.1.0]
542
-
543
- * History.rdoc, lib/loggability.rb:
544
- Bump minor version, update history.
545
- [ea1633c450be]
546
-
547
- * .hgignore, Rakefile, lib/loggability.rb,
548
- lib/loggability/constants.rb, lib/loggability/formatter/color.rb,
549
- lib/loggability/logger.rb, spec/loggability/formatter/html_spec.rb,
550
- spec/loggability/formatter_spec.rb, spec/loggability/logger_spec.rb:
551
- Remove all 1.9isms so it works under 1.8.x.
552
-
553
- I've been trying to do everything in 1.9 first, but it turns out
554
- there's still some 1.8 stuff that I need to support that I'd like to
555
- use this with.
556
- [e702bbec7c9d]
557
-
558
- * lib/loggability/formatter/color.rb:
559
- Fix the docs for the color formatter
560
- [4191fb2e0d14]
561
-
562
- 2012-05-07 Michael Granger <ged@FaerieMUD.org>
563
-
564
- * .hgtags:
565
- Added tag v0.0.2 for changeset 9a502152869e
566
- [984798ba8ace]
567
-
568
- * .hgsigs:
569
- Added signature for changeset 1099204b229f
570
- [9a502152869e] [v0.0.2]
571
-
572
- * History.rdoc, lib/loggability.rb:
573
- Bumped the patch version, updated History.
574
- [1099204b229f]
575
-
576
- * lib/loggability/formatter/html.rb, spec/lib/helpers.rb,
577
- spec/loggability/formatter/html_spec.rb:
578
- Fix escaping of the 'progname' in the HTML log formatter.
579
- [748e600c8037]
580
-
581
- 2012-05-06 Michael Granger <ged@FaerieMUD.org>
582
-
583
- * README.rdoc:
584
- Add some stuff to the README.
585
- [711c4dff84cf]
586
-
587
- * .hgtags:
588
- Added tag v0.0.1 for changeset 6dc36a56ff79
589
- [16d1a85c491d]
590
-
591
- * .hgsigs:
592
- Added signature for changeset 7eb43f3b1e1e
593
- [6dc36a56ff79] [v0.0.1]
594
-
595
- * History.rdoc, Manifest.txt, lib/loggability/formatter/html.rb,
596
- spec/lib/helpers.rb, spec/loggability/formatter/color_spec.rb,
597
- spec/loggability/formatter/html_spec.rb,
598
- spec/loggability/formatter_spec.rb, spec/loggability_spec.rb:
599
- Improve coverage.
600
- [7eb43f3b1e1e]
601
-
602
- 2012-05-05 Michael Granger <ged@FaerieMUD.org>
603
-
604
- * README.rdoc:
605
- Add some more stuff to the README
606
- [90cec90bbfe3]
607
-
608
- * .hgignore:
609
- Ignore the rubinius cache
610
- [f3207f533df4]
611
-
612
- * .hgignore, .pryrc, .rvm.gems, .rvmrc, History.rdoc, Manifest.txt,
613
- README.rdoc, Rakefile, bin/loggability, lib/loggability.rb,
614
- lib/loggability/constants.rb, lib/loggability/formatter.rb,
615
- lib/loggability/formatter/color.rb,
616
- lib/loggability/formatter/default.rb,
617
- lib/loggability/formatter/html.rb, lib/loggability/logger.rb,
618
- spec/lib/helpers.rb, spec/loggability/logger_spec.rb,
619
- spec/loggability_spec.rb:
620
- Initial commit
621
- [7b3fcf97718a]