Module: Mnogootex::Log

Defined in:
lib/mnogootex/log.rb,
lib/mnogootex/log/line.rb,
lib/mnogootex/log/level.rb,
lib/mnogootex/log/matcher.rb,
lib/mnogootex/log/processor.rb

Overview

Log implements means to reduce log floods into filtered, color coded and human friendly summaries.

  • Lines are log lines.

  • Levels define log levels, their priority and color coding.

  • Matchers define patterns to determine the level of log lines.

  • Processors implement all transformations.

Defined Under Namespace

Classes: Level, Line, Matcher, Processor

Constant Summary collapse

DEFAULT_LEVELS_PATH =
Pathname.new(__dir__).join('log', 'levels.yml')
DEFAULT_MATCHERS_PATH =
Pathname.new(__dir__).join('log', 'matchers.yml')
DEFAULT_LEVELS =
YAML.load_file(DEFAULT_LEVELS_PATH).map { |l| [l.name, l] }.to_h.freeze
DEFAULT_MATCHERS =
YAML.load_file(DEFAULT_MATCHERS_PATH).freeze