logger_extension 0.0.2.1 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MmNmMzYwYWVhMzlkNjZlYTk0ZTY0ZTQ4ZDc5NmIzMTRiNzI1OWE4NQ==
5
+ data.tar.gz: !binary |-
6
+ NjExNWQzZmY2YTI3YzAwMTY2YWVjNjE3YWVhZjI1NTE4MDM1YjkwNg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ MzM2ZmY4YmRmZWI0MDRlNDA3NmY4YjFjOTkxYjlkZGQ2ZDFlOTdmMjk3NWM3
10
+ ZTNhODRjZTUxN2RjMzI5NDNmZWNkMTIxYmJjZjU5YmVjMmJmYjVjZDQ3Yzky
11
+ NGM3MzA5OTA4NGQ3MmJmNmNkMDM0MzI4YmZjMzdjYzI0NjBjYTc=
12
+ data.tar.gz: !binary |-
13
+ N2E4YjBlZTYyOWI4ZWI3NzhlYjI1YzRhNGI0MTk2ZjVhNmEyNjY1OGViY2Zi
14
+ MGQ2OGM1NWFkMWE2MWU1NzRkNmIzMzc3MmIyOGE3Njg0ZTljODI0ZjA5N2Ix
15
+ NmY3ZjYxYzllYzBhOTFkOWJlODk3YTg1YWEyMjJiZWU2YjVmNTU=
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # LoggerExtension
2
2
 
3
- TODO: Write a gem description
3
+ [![Gem Version](https://badge.fury.io/rb/logger_extension.png)](http://badge.fury.io/rb/logger_extension)
4
+ [![Code Climate](https://codeclimate.com/github/kuldeepaggarwal/logger_extension.png)](https://codeclimate.com/github/kuldeepaggarwal/logger_extension)
5
+
6
+ LoggerExtension is a utility for logging on multiple files for rack applications.
7
+
4
8
 
5
9
  ## Installation
6
10
 
@@ -1,5 +1,7 @@
1
+ require 'forwardable'
1
2
  module LoggerExtension
2
3
  class MultiIOLogger
4
+ extend Forwardable
3
5
 
4
6
  class LogDeviceMutex
5
7
  include MonitorMixin
@@ -14,6 +16,9 @@ module LoggerExtension
14
16
  @mutex = LogDeviceMutex.new
15
17
  end
16
18
 
19
+ def_delegator :@default_formatter, :datetime_format
20
+ def_delegator :@default_formatter, :datetime_format=
21
+
17
22
  def write(*arguments)
18
23
  @targets.each { |target|
19
24
  begin
@@ -42,14 +47,6 @@ module LoggerExtension
42
47
  end
43
48
  end
44
49
 
45
- def datetime_format
46
- default_formatter.datetime_format
47
- end
48
-
49
- def datetime_format=(format)
50
- default_formatter.datetime_format = format
51
- end
52
-
53
50
  private
54
51
  def log_exception(severity, message, exception)
55
52
  write_message(message.to_s + default_formatter.call(severity, Time.now, default_progname, exception).to_s)
@@ -1,3 +1,3 @@
1
1
  module LoggerExtension
2
- VERSION = "0.0.2.1".freeze
2
+ VERSION = "0.0.3".freeze
3
3
  end
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logger_extension
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.1
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - kuldeepaggarwal
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-18 00:00:00.000000000 Z
11
+ date: 2013-08-01 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: A utility for logging on multiple files for rack applications
15
14
  email:
@@ -31,26 +30,25 @@ files:
31
30
  homepage: https://github.com/kuldeepaggarwal/logger_extension
32
31
  licenses:
33
32
  - MIT
33
+ metadata: {}
34
34
  post_install_message:
35
35
  rdoc_options: []
36
36
  require_paths:
37
37
  - lib
38
38
  required_ruby_version: !ruby/object:Gem::Requirement
39
- none: false
40
39
  requirements:
41
40
  - - ! '>='
42
41
  - !ruby/object:Gem::Version
43
42
  version: '0'
44
43
  required_rubygems_version: !ruby/object:Gem::Requirement
45
- none: false
46
44
  requirements:
47
45
  - - ! '>='
48
46
  - !ruby/object:Gem::Version
49
47
  version: '0'
50
48
  requirements: []
51
49
  rubyforge_project:
52
- rubygems_version: 1.8.25
50
+ rubygems_version: 2.0.5
53
51
  signing_key:
54
- specification_version: 3
52
+ specification_version: 4
55
53
  summary: A utility for logging on multiple files for rack applications.
56
54
  test_files: []