Class: WebrickLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/appswarm/http/webrick_logger.rb

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ WebrickLogger

Returns a new instance of WebrickLogger.



2
3
4
# File 'lib/appswarm/http/webrick_logger.rb', line 2

def initialize(app)
  @app=app
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args) ⇒ Object



5
6
7
# File 'lib/appswarm/http/webrick_logger.rb', line 5

def method_missing(*args)
  @app.log(args)
end

Instance Method Details

#error(*args) ⇒ Object



8
9
10
11
# File 'lib/appswarm/http/webrick_logger.rb', line 8

def error(*args)
  @app.log(args.inspect)
  @app.log(caller.join("\n"))
end