abstract struct Crylog::Handlers::ProcessingLogHandler
- Crylog::Handlers::ProcessingLogHandler
- Crylog::Handlers::AbstractLogHandler
- Crylog::Handlers::LogHandler
- Struct
- Value
- Object
Overview
Base struct implementing support for handler specific processors and formatter.
Most handlers can inherit from this and implement #write
.
Included Modules
Direct Known Subclasses
Defined in:
handlers/processing_handler.crInstance Method Summary
-
#handle(message : Crylog::Message) : Bool
Handles a logged message.
Instance methods inherited from module Crylog::Processors::Processable
processors : Array(Crylog::Processors::LogProcessors)
processors
Instance methods inherited from module Crylog::Formatters::Formattable
formatter : Crylog::Formatters::LogFormatters
formatter,
formatter=(formatter : Crylog::Formatters::LogFormatters?)
formatter=
Instance methods inherited from struct Crylog::Handlers::AbstractLogHandler
bubble : Bool
bubble,
bubble=(bubble : Bool)
bubble=,
handles?(message : Crylog::Message) : Bool
handles?,
severity : Crylog::Severity
severity,
severity=(severity : Crylog::Severity)
severity=
Constructor methods inherited from struct Crylog::Handlers::AbstractLogHandler
new(severity : Crylog::Severity = Crylog::Severity::Debug, bubble : Bool = true)
new
Instance methods inherited from struct Crylog::Handlers::LogHandler
close
close
Constructor methods inherited from struct Crylog::Handlers::LogHandler
new
new
Instance Method Detail
def handle(message : Crylog::Message) : Bool
#
Handles a logged message.
Responsible for returning early if self
should not handle message.
Runs self
's processors, formats, then writes message.