/** * mc-router log line parsing (#769). * * mc-router 1.47.x logs through logrus' default TextFormatter (logfmt), e.g. * time="…" level=info msg="Connecting to backend" backendHostPort="mc-a:25565" player=Steve/ server=a.local * Only info-level messages are relied on; see the #769 research comment for the * full list. Anything this module does not recognise passes through as `info`. */ export type RouterLogKind = 'connect' | 'wake' | 'error' | 'info'; export interface RouterLogEvent { /** logrus `time` field; absent when the line is not logfmt. */ ts?: string; kind: RouterLogKind; /** Hostname the client asked for (handshake server address). */ hostname?: string; /** Backend host:port mc-router routed to. */ target?: string; /** Player name; only present on login connections, not status pings. */ player?: string; raw: string; } export declare function parseRouterLogLine(line: string): RouterLogEvent; //# sourceMappingURL=routerLog.d.ts.map