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)
|
2016-09-05 14:55:53 +00:00
|
|
|
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
|