@sockethub/logger 1.0.0-alpha.19 → 1.0.0-alpha.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -5,6 +5,14 @@ export interface LoggerOptions {
5
5
  fileLevel?: string;
6
6
  file?: string;
7
7
  }
8
+ export interface LogRecord {
9
+ level: string;
10
+ message: string;
11
+ namespace: string;
12
+ }
13
+ export type LogSink = (record: LogRecord) => void;
14
+ /** Attach or remove a process-wide structured-log sink. */
15
+ export declare function setLogSink(sink: LogSink | null): void;
8
16
  /**
9
17
  * Initialize the logger system with global configuration.
10
18
  *