Class: Rack::NullLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/nulllogger.rb

Instance Method Summary (collapse)

Constructor Details

- (NullLogger) initialize(app)



3
4
5
# File 'lib/rack/nulllogger.rb', line 3

def initialize(app)
  @app = app
end

Instance Method Details

- (Object) call(env)



7
8
9
10
# File 'lib/rack/nulllogger.rb', line 7

def call(env)
  env['rack.logger'] = self
  @app.call(env)
end

- (Object) debug(progname = nil, &block)



13
# File 'lib/rack/nulllogger.rb', line 13

def debug(progname = nil, &block); end

- (Object) error(progname = nil, &block)



15
# File 'lib/rack/nulllogger.rb', line 15

def error(progname = nil, &block); end

- (Object) fatal(progname = nil, &block)



16
# File 'lib/rack/nulllogger.rb', line 16

def fatal(progname = nil, &block); end

- (Object) info(progname = nil, &block)



12
# File 'lib/rack/nulllogger.rb', line 12

def info(progname = nil, &block);  end

- (Object) warn(progname = nil, &block)



14
# File 'lib/rack/nulllogger.rb', line 14

def warn(progname = nil, &block);  end