Module: LogStruct::Handlers

Defined in:
lib/log_struct/handlers.rb

Overview

Module for custom handlers used throughout the library

Constant Summary collapse

LogrageCustomOptions =

Type for Lograge custom options

T.type_alias {
  T.proc.params(
    event: ActiveSupport::Notifications::Event,
    options: T::Hash[Symbol, T.untyped]
  ).returns(T.untyped)
}
ErrorReporter =

Type for error reporting handlers

T.type_alias {
  T.proc.params(
    error: StandardError,
    context: T.nilable(T::Hash[Symbol, T.untyped]),
    source: Source
  ).void
}
StringScrubber =

Type for string scrubbing handlers

T.type_alias { T.proc.params(string: String).returns(String) }