Class: Rack::NullLogger
- Inherits:
-
Object
- Object
- Rack::NullLogger
- Defined in:
- lib/rack/nulllogger.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
- #debug(progname = nil, &block) ⇒ Object
- #error(progname = nil, &block) ⇒ Object
- #fatal(progname = nil, &block) ⇒ Object
- #info(progname = nil, &block) ⇒ Object
-
#initialize(app) ⇒ NullLogger
constructor
A new instance of NullLogger.
- #warn(progname = nil, &block) ⇒ Object
Constructor Details
#initialize(app) ⇒ NullLogger
Returns a new instance of NullLogger.
3 4 5 |
# File 'lib/rack/nulllogger.rb', line 3 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
7 8 9 10 |
# File 'lib/rack/nulllogger.rb', line 7 def call(env) env['rack.logger'] = self @app.call(env) end |
#debug(progname = nil, &block) ⇒ Object
13 |
# File 'lib/rack/nulllogger.rb', line 13 def debug(progname = nil, &block); end |
#error(progname = nil, &block) ⇒ Object
15 |
# File 'lib/rack/nulllogger.rb', line 15 def error(progname = nil, &block); end |
#fatal(progname = nil, &block) ⇒ Object
16 |
# File 'lib/rack/nulllogger.rb', line 16 def fatal(progname = nil, &block); end |
#info(progname = nil, &block) ⇒ Object
12 |
# File 'lib/rack/nulllogger.rb', line 12 def info(progname = nil, &block); end |
#warn(progname = nil, &block) ⇒ Object
14 |
# File 'lib/rack/nulllogger.rb', line 14 def warn(progname = nil, &block); end |