rack-custom_logger 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -2
  3. data/rack-custom_logger.gemspec +3 -3
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29f7e87caf00044a7159423f4491eec2e78a0fdd
4
- data.tar.gz: a79ef8730bc758514bf87dcb81ef6c827dca08ef
3
+ metadata.gz: 1261eee14f86e1c03298928d158120091c3f039c
4
+ data.tar.gz: 16844fb561624c7ea06349c4e421073a73572e3d
5
5
  SHA512:
6
- metadata.gz: 23076fd81c358e68c5cfc0c3efa1c7613ef8d81b821237178495e21f55e3e8d79ad92942dea447fd52ed5b44a9ffc61d34dc96f7eae813c985c8660e8442d831
7
- data.tar.gz: 65a3786af1c5cbda396f766d048fca8a8a34335650cb4cbc320abdce32d31c643a737a701846e01557693227bde045f59d7b275d639929342678ef7b7ba36b05
6
+ metadata.gz: bd23c2a3859641a642c03353f8470a5aefd8d69f2fc718aacd024946ea1aa18ee018637de8f9c6bde990fea2adec1d1719c5284ab0a58d8d7412d56ae7843c4f
7
+ data.tar.gz: d9c160bbe74b0c8bd25633a5b11bc3d3bc5e63e521ff6da82c3bd8b4deb1e2fa5c7abe7ed66bf5ef637c2ed4efeef58b7584ab18557163a9e2aac9e1eb28d88f
data/README.md CHANGED
@@ -2,7 +2,9 @@
2
2
  [![Build Status](https://travis-ci.org/SpringMT/rack-custom_logger.png)](https://travis-ci.org/SpringMT/rack-custom_logger)
3
3
  [![Coverage Status](https://coveralls.io/repos/SpringMT/rack-custom_logger/badge.png)](https://coveralls.io/r/SpringMT/rack-custom_logger)
4
4
 
5
- * Change rack default logger
5
+ * Switch rack logger
6
+
7
+ Overwrite env['rack.logger'] in Rack::CustomLogger.
6
8
 
7
9
  ## Installation
8
10
 
@@ -21,7 +23,13 @@ Or install it yourself as:
21
23
  ## Usage
22
24
 
23
25
  ```
24
- use Rack::CustomLogger, DailyLogger.new("#{log_dir}/test")
26
+ use Rack::CustomLogger, YourOwnLogger.new
27
+ ```
28
+
29
+ ### Set Formatter and level
30
+
31
+ ```
32
+ use Rack::CustomLogger, YourOwnLogger.new, YourOwnLogger::INFO, YouOwnSpecialFormatter.new
25
33
  ```
26
34
 
27
35
  ## Contributing
@@ -3,11 +3,11 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "rack-custom_logger"
6
- spec.version = '0.0.3'
6
+ spec.version = '0.0.4'
7
7
  spec.authors = ["SpringMT"]
8
8
  spec.email = ["today.is.sky.blue.sky@gmail.com"]
9
- spec.description = %q{Write a gem description}
10
- spec.summary = %q{Change rack default logger}
9
+ spec.description = %q{Switch rack logger}
10
+ spec.summary = %q{Switch rack logger}
11
11
  spec.homepage = "https://github.com/SpringMT/rack-custom_logger"
12
12
  spec.license = "MIT"
13
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-custom_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - SpringMT
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-15 00:00:00.000000000 Z
11
+ date: 2013-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- description: Write a gem description
55
+ description: Switch rack logger
56
56
  email:
57
57
  - today.is.sky.blue.sky@gmail.com
58
58
  executables: []
@@ -89,10 +89,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  requirements: []
91
91
  rubyforge_project:
92
- rubygems_version: 2.0.3
92
+ rubygems_version: 2.0.14
93
93
  signing_key:
94
94
  specification_version: 4
95
- summary: Change rack default logger
95
+ summary: Switch rack logger
96
96
  test_files:
97
97
  - spec/rack-custom_logger_spec.rb
98
98
  - spec/spec_helper.rb