Class: PierLogging::Logger
- Inherits:
-
Ougai::Logger
- Object
- Ougai::Logger
- PierLogging::Logger
- Includes:
- ActiveSupport::LoggerSilence, ActiveSupport::LoggerThreadSafeLevel
- Defined in:
- lib/pier_logging/logger.rb
Instance Method Summary collapse
- #_log(severity, *args) ⇒ Object
- #create_formatter ⇒ Object
-
#initialize(*args) ⇒ Logger
constructor
A new instance of Logger.
Constructor Details
#initialize(*args) ⇒ Logger
Returns a new instance of Logger.
7 8 9 10 |
# File 'lib/pier_logging/logger.rb', line 7 def initialize(*args) super after_initialize if respond_to?(:after_initialize) && ActiveSupport::VERSION::MAJOR < 6 end |
Instance Method Details
#_log(severity, *args) ⇒ Object
16 17 18 19 |
# File 'lib/pier_logging/logger.rb', line 16 def _log(severity, *args) redacted_args = redact_data(args) super(severity, *redacted_args) end |
#create_formatter ⇒ Object
12 13 14 |
# File 'lib/pier_logging/logger.rb', line 12 def create_formatter PierLogging.logger_configuration.formatter end |