Class: Mnogootex::Log::Matcher

Inherits:
Struct
  • Object
show all
Defined in:
lib/mnogootex/log/matcher.rb

Overview

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.

Instance Attribute Summary collapse

Instance Attribute Details

#lengthInteger

Returns the number of matched lines.

Returns:

  • (Integer)

    the number of matched lines



15
# File 'lib/mnogootex/log/matcher.rb', line 15

Matcher = Struct.new(:regexp, :level, :length)

#levelSymbol

Returns the associated log level.

Returns:

  • (Symbol)

    the associated log level



15
# File 'lib/mnogootex/log/matcher.rb', line 15

Matcher = Struct.new(:regexp, :level, :length)

#regexpRegexp

Returns the regexp to match the first line.

Returns:

  • (Regexp)

    the regexp to match the first line



15
# File 'lib/mnogootex/log/matcher.rb', line 15

Matcher = Struct.new(:regexp, :level, :length)