class Crack::Handler::Logger

Overview

The Logger handler logs every request/response to the provided logger. The logger can be configured as STDIN/STDOUT or as a log file. A custom logger can be configured and passed in as well.

Defined in:

crack/logger.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Crack::Handler::Base

call(context) call, config(&) config

Class methods inherited from class Crack::Handler::Base

config(&) config

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.instance #

[View source]

Instance Method Detail

def call(context) #
Description copied from class Crack::Handler::Base

Execution of this handler.


[View source]