UNPKG

next-runtime-env

Version:

Next.js Runtime Environment Configuration - Populates your environment at runtime rather than build time.

27 lines (26 loc) 832 B
export type Level = 'error' | 'warn' | 'info'; export type LevelWithSilent = 'silent' | Level; export type LogOptions = { /** * Level of logging * @default 'event' */ logLevel?: LevelWithSilent; }; export declare const prefixes: { readonly error: string; readonly warn: string; readonly info: string; readonly event: string; }; export declare const prefixLevels: { readonly silent: number; readonly error: 40; readonly warn: 30; readonly info: 20; readonly event: 10; }; export declare function error(message: string, options?: LogOptions): void; export declare function warn(message: string, options?: LogOptions): void; export declare function info(message: string, options?: LogOptions): void; export declare function event(message: string, options?: LogOptions): void;