class Amber::Environment::Logging

Defined in:

amber/environment/logging.cr

Constant Summary

COLOR_MAP = {black: :black, red: :red, green: :green, yellow: :yellow, blue: :blue, magenta: :magenta, cyan: :cyan, light_gray: :light_gray, dark_gray: :dark_gray, light_red: :light_red, light_green: :light_green, light_yellow: :light_yellow, light_blue: :light_blue, light_magenta: :light_magenta, light_cyan: :light_cyan, white: :white}
DEFAULTS = {"severity" => "debug", "colorize" => true, "color" => "light_cyan", "filter" => ["password", "confirm_password"], "skip" => [] of String}

Constructors

Instance Method Summary

Constructor Detail

def self.new(initial_logging : OptionsType) #

[View source]

Instance Method Detail

def color : Symbol #

[View source]
def color=(color : String) #

[View source]
def colorize : Bool #
Description copied from module Colorize::ObjectExtensions

Turns self into a Colorize::Object.


[View source]
def colorize=(colorize : Bool) #

[View source]
def filter : Array(String) #

[View source]
def filter=(filter : Array(String)) #

[View source]
def severity : Log::Severity #

[View source]
def severity=(severity : String | Symbol) #

[View source]
def skip : Array(String) #

[View source]
def skip=(skip : Array(String)) #

[View source]