module Mnogootex::Log

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

Constants

DEFAULT_LEVELS
DEFAULT_LEVELS_PATH
DEFAULT_MATCHERS
DEFAULT_MATCHERS_PATH
Level

This data structure represents a log level usually referred to by its {name}. It has a numeric {priority} and a {color} used for rendering.

@!attribute priority

@return [Numeric] the numeric priority of the log level

@!attribute name

@return [Symbol] the human readable name of the log level

@!attribute color

@return [Symbol] the color visually representing the {priority}
Line

This data structure represents a log line. It can have a log {level} along with its {text}.

@!attribute text

@return [String] the contents of the line

@!attribute level

@return [Symbol] the associated log level
Matcher

This data structure represents a typology of log line chunks belonging to a given log {level}. They start with a line matching {regexp} and have a fixed {length}.

@!attribute regexp

@return [Regexp] the regexp to match the first line

@!attribute level

@return [Symbol] the associated log level

@!attribute length

@return [Integer] the number of matched lines