class
Amber::Pipe::Logger
- Amber::Pipe::Logger
- Amber::Pipe::Base
- Reference
- Object
Defined in:
amber/pipes/logger.crConstructors
-
.new(filter : Array(String) = log_config.filter, skip : Array(String) = log_config.skip, colorize : Bool = log_config.colorize)
Reads
Amber.settingsonly when the pipe is built, which happens inconfig/routes.crafter the app's initializers have registered their settings sections.
Instance Method Summary
-
#call(context : HTTP::Server::Context)
Execution of this handler.
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.
Instance Method Detail
def call(context : HTTP::Server::Context)
#
Description copied from class Amber::Pipe::Base
Execution of this handler.