class WebrickLogger def initialize(app) @app=app end def method_missing(*args) @app.log(args) end def error(*args) @app.log(args.inspect) @app.log(caller.join("\n")) end end