A parser that work exactly like Loki pattern (see README for usage example).
class Pattern<T extends LokiPatternType> implements PatternShape<T> {}
Create a new instance of Pattern using either:
- a string
- an array of string
- a tuple (readonly array)
new Pattern([
"[schema: <id>|type: <user_type>]",
"HTTP <verb> <_> <endpoint>"
] as const)
Compile a function to parse a log (one by one). This method is used in executeOnLogs().
Parse an Array of logs