footprint-log 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4848d46a5d4b1bcea985f3421eaca78df8c57ede
4
- data.tar.gz: 7feb5f3a3a136ba103ed951709c446e284edee85
3
+ metadata.gz: 9c8637e5e2c1b95ee77829c19ad6964dc2544d56
4
+ data.tar.gz: 06668e5f8f3ec83b851b640a284493469bde85ed
5
5
  SHA512:
6
- metadata.gz: 54d1c47b19db6adfccdc5fd5395a506221415b5b171efdc3e0dfd597bf9f03ec91d7711235523d8c7fcf6ea2efa7131972eb05b84f0a694f6e829c8004a572b2
7
- data.tar.gz: b6b2d6063e95fd804f4935f636512bf83d43a8d1c64bf99f66cf7eb57653044d7fc335eca67ad93369a53b0336b83fa7793ce987d6b9d15151402fb5adcbbb24
6
+ metadata.gz: 9049f9476114f701c7660320daec216b0adca41452fac4ccb5c4208c7d581e053b1260ea242ecca35c7bfdda2b231a40840489652a7dcd11f277ab3c92a128f7
7
+ data.tar.gz: 18dfed8dd26460a1511a84f4c8d6e4b39226336bd9d45c13e72550f303b375e258f489334a2cc1af866f67bdf57a043982e0e27f42669c5eefc009ef3ea1ea15
data/README.rdoc CHANGED
@@ -68,13 +68,11 @@ In that case we can do something like this:
68
68
 
69
69
  Let's assume we want to use the following custom Logger class, initialized with log_device as STDOUT and level as 5.
70
70
 
71
- class MyAwesomeLogger
71
+ class MyAwesomeLogger < Logger
72
72
 
73
- attr_accesor :log_device, :level
74
-
75
- def initialize log_device, level
76
- @log_device = log_device
77
- @level = level
73
+ def initialize logdev, level
74
+ super logdev, shift_age = 0, shift_size = 1048576
75
+ @level = level
78
76
  end
79
77
 
80
78
  end
@@ -88,17 +86,17 @@ In that case we can do something like this:
88
86
  class MyApp < Sinatra
89
87
 
90
88
  use Footprint::Middleware do
91
- set MyAwesomeLogger, STDOUT, 5
89
+ set MyAwesomeLogger, STDOUT, 1
92
90
  end
93
91
 
94
92
  get '/' do
95
- logger.info 'I can use a instance of MyAwesomeLogger class, initialized with STDOUT, 5 option by calling the logger method inside my route!'
93
+ logger.info 'I can use a instance of MyAwesomeLogger class, initialized with STDOUT, 1 option by calling the logger method inside my route!'
96
94
  end
97
95
 
98
96
  end
99
97
 
100
98
 
101
- == Contributing to footprint
99
+ == Contributing to Footprint
102
100
 
103
101
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
104
102
  * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
@@ -1,10 +1 @@
1
- module Footprint
2
-
3
- #
4
- # Module that wraps the Footprint Middleware content.
5
- #
6
- module Middleware; end
7
-
8
- end
9
-
10
1
  require_relative 'middleware/logger'
@@ -6,7 +6,6 @@ module Footprint
6
6
  #
7
7
  # Class that is actually the Middleware we use to decorate
8
8
  # the application with loggers, taking advantage of the @env.
9
- #
10
9
  class Middleware
11
10
 
12
11
  # @app = the instance of the application that uses this middleware.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: footprint-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puiu Ionut