@nowarajs/logger
Version:
Type-safe logging library for Bun with advanced TypeScript body intersection, modular sink pattern, transform streams, and immutable API design.
21 lines (20 loc) • 443 B
TypeScript
import type { InternalError } from '@nowarajs/error';
export interface LoggerEvent {
onBeforeExitError: [InternalError<{
error: Error;
}>];
registerSinkError: [
InternalError<{
sinkName: string;
error: Error;
}>
];
sinkError: [
InternalError<{
sinkName: string;
object?: unknown;
error: Error;
}>
];
drained: [];
}