madvertise-logging 1.0.0.rc3 → 1.0.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
@@ -247,6 +247,10 @@ module Madvertise
247
247
  self.close
248
248
 
249
249
  case @backend
250
+ when :stdout
251
+ create_io_backend(STDOUT)
252
+ when :stderr
253
+ create_io_backend(STDERR)
250
254
  when :syslog
251
255
  create_syslog_backend
252
256
  when :buffer
@@ -256,7 +260,7 @@ module Madvertise
256
260
  when String
257
261
  create_file_backend
258
262
  when IO
259
- create_io_backend
263
+ create_io_backend(@backend)
260
264
  when Logger
261
265
  @backend
262
266
  else
@@ -286,8 +290,8 @@ module Madvertise
286
290
  end
287
291
  end
288
292
 
289
- def create_io_backend
290
- @logfile = @backend
293
+ def create_io_backend(backend)
294
+ @logfile = backend
291
295
  create_logger
292
296
  end
293
297
 
@@ -1,6 +1,6 @@
1
1
  module Madvertise
2
2
  module Logging
3
3
  # @private
4
- VERSION = "1.0.0.rc3"
4
+ VERSION = "1.0.0.rc4"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: madvertise-logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc3
4
+ version: 1.0.0.rc4
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-04 00:00:00.000000000 Z
12
+ date: 2013-04-14 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Advanced logging classes with buffer backend, transactions, multi logger,
15
15
  etc
@@ -58,7 +58,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
58
  version: '0'
59
59
  segments:
60
60
  - 0
61
- hash: 4043118635048299053
61
+ hash: 2046678854660356515
62
62
  required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements: