SelfLog: {
_enabled: boolean;
_output: { write(s: string): void } | null;
disable(): void;
enable(): void;
setOutput(output: { write(s: string): void }): void;
write(message: string, error?: unknown): void;
} = ...
Type Declaration
-
_enabled: boolean
-
_output: { write(s: string): void } | null
-
disable: function
-
Returns void
-
enable: function
-
Returns void
-
setOutput: function
-
setOutput(output: { write(s: string): void }): void
Parameters
- output: { write(s: string): void }
Returns void
-
write: function
-
write(message: string, error?: unknown): void
Parameters
- message: string
Optionalerror: unknown
Returns void
Internal diagnostic channel for the logging library's own errors.
Sinks use this when they fail, instead of throwing and crashing the application. By default writes to
process.stderr.