kemal/src/kemal/null_log_handler.cr

12 lines
269 B
Crystal
Raw Normal View History

2016-07-17 11:43:13 +00:00
module Kemal
# This is here to represent the logger corresponding to Null Object Pattern.
class NullLogHandler < Kemal::BaseLogHandler
2017-08-24 20:32:43 +00:00
def call(context : HTTP::Server::Context)
call_next(context)
2016-07-28 18:12:55 +00:00
end
2017-08-24 20:32:43 +00:00
def write(message : String)
2016-07-28 18:12:55 +00:00
end
2016-07-17 11:43:13 +00:00
end
2016-02-12 12:11:21 +00:00
end