LogParser
interface exported by @mwillbanks/tuil-logging.
interface
Public interface exported by @mwillbanks/tuil-logging.
export interface LogParser {
readonly id: string;
detect(input: string): number;
parse(input: string): readonly LogRecord[];
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
id | string | Yes | The id member uses the string contract. | — |
detect | (input: string) => number | Yes | The detect member uses the (input: string) => number contract. | — |
parse | (input: string) => readonly LogRecord[] | Yes | The parse member uses the (input: string) => readonly LogRecord[] contract. | LogRecord |
Parameters
This declaration has no public members.
Returns
This declaration does not return a value.
Throws
No thrown errors are documented for this declaration.
Related types
Source
View the secondary source reference