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.
- checksums.yaml +4 -4
- data/README.md +10 -2
- data/rack-custom_logger.gemspec +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1261eee14f86e1c03298928d158120091c3f039c
|
4
|
+
data.tar.gz: 16844fb561624c7ea06349c4e421073a73572e3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
*
|
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,
|
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
|
data/rack-custom_logger.gemspec
CHANGED
@@ -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.
|
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{
|
10
|
-
spec.summary = %q{
|
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.
|
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
|
+
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:
|
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.
|
92
|
+
rubygems_version: 2.0.14
|
93
93
|
signing_key:
|
94
94
|
specification_version: 4
|
95
|
-
summary:
|
95
|
+
summary: Switch rack logger
|
96
96
|
test_files:
|
97
97
|
- spec/rack-custom_logger_spec.rb
|
98
98
|
- spec/spec_helper.rb
|