class PierLogging::Logger

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/pier_logging/logger.rb, line 7
def initialize(*args)
  super
  after_initialize if respond_to? :after_initialize
end

Public Instance Methods

_log(severity, *args) click to toggle source
Calls superclass method
# File lib/pier_logging/logger.rb, line 16
def _log(severity, *args)
  redacted_args = redact_data(args)
  super(severity, *redacted_args)
end
create_formatter() click to toggle source
# File lib/pier_logging/logger.rb, line 12
def create_formatter
  PierLogging.logger_configuration.formatter
end

Private Instance Methods

redact_data(data) click to toggle source
# File lib/pier_logging/logger.rb, line 23
def redact_data(data)
  PierLogging::Helpers::Redactor.redact(data)
end