UNPKG

@incubrain/logger

Version:

A modern, format-agnostic logging library for Node.js and browser environments, built on top of Consola with additional features for enterprise applications.

13 lines (12 loc) 387 B
export type Runtime = "client" | "server"; export interface RuntimeContext { runtime: Runtime; isFileSystemAvailable: boolean; isProcessAvailable: boolean; environment: "development" | "production" | "test"; } export interface LoggerRuntime { getContext(): RuntimeContext; getEnvVar(name: string): string | undefined; setupErrorHandlers(logger: any): void; }