| 53 | * Formatter that outputs log events as JSON strings. |
| 54 | */ |
| 55 | export class JsonFormatter implements ConsoleFormatter { |
| 56 | format(event: LogEvent): unknown[] { |
| 57 | return ['%s', JSON.stringify(event)] |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | type Fragment = { |
| 62 | fmt: string |
nothing calls this directly
no outgoing calls
no test coverage detected