Module: G5::Logger

Defined in:
lib/g5/logger.rb,
lib/g5/logger/log.rb,
lib/g5/logger/version.rb

Defined Under Namespace

Classes: Log

Constant Summary collapse

KEY_VALUE_FORMAT =
'key_value'
JSON_FORMAT =
'json'
Config =

override in your Rails.root/config/initializers

{
    logger:          'REQUIRED', #usually Rails.logger
    source_app_name: 'REQUIRED - this is the name of the app using it',
    format:          JSON_FORMAT, # json or key_value
    redact_keys:     [/credit/, /password/, /cvv/],
    redact_value:    '***',
    default_log_hash: {} #when you Log.log(your_hash), your_hash will get merged into the default_log_hash
}
VERSION =
"0.0.6"