class Amber::Pipe::Logger

Defined in:

amber/pipes/logger.cr

Constructors

Instance Method Summary

Instance methods inherited from class Amber::Pipe::Base

call(context : HTTP::Server::Context) call

Constructor Detail

def self.new(filter : Array(String) = log_config.filter, skip : Array(String) = log_config.skip, colorize : Bool = log_config.colorize) #

Reads Amber.settings only when the pipe is built, which happens in config/routes.cr after the app's initializers have registered their settings sections. A read while require "amber" runs would cache the settings before those sections exist.


[View source]

Instance Method Detail

def call(context : HTTP::Server::Context) #
Description copied from class Amber::Pipe::Base

Execution of this handler.


[View source]