addLogHandler
Adds a log sink for the current LogWriter instance.
addLogHandler(minLevel: number, f: (message: LogWriter.LogMessageData) => void): void
Parameters
- minLevel — The minimum log level for which messages are passed to the handler function
- f — A handler function, which should accept a single LogWriter.LogMessageData argument
Related
- class GlobalContextA singleton class that represents the global application state.