LogPattern class

A class representing a log pattern with a name and a regular expression pattern.

The LogPattern class is used to define a pattern for log entries. It contains a name for the pattern and a regular expression to match log entries.

Example usage:

final logPattern = LogPattern(name: 'Error', pattern: r'ERROR: .*');

Properties:

  • name: The name of the log pattern.
  • pattern: The regular expression pattern used to match log entries.

Constructor:

  • LogPattern({required String name, required String pattern}): Creates a new LogPattern instance with the given name and pattern.

Constructors

LogPattern({required String name, required String pattern})

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
final
pattern ↔ RegExp?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited