UNPKG

@intlayer/config

Version:

Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.

15 lines 775 B
import type { CustomIntlayerConfig } from './types/config'; export type Details = { isVerbose?: boolean; level?: 'info' | 'warn' | 'error' | 'debug'; config?: CustomIntlayerConfig['log']; }; export type Logger = (content: any, details?: Details) => void; export declare const logger: Logger; /** * The appLogger function takes the logger and merges it with the configuration from the intlayer config file. * It allows overriding the default configuration by passing a config object in the details parameter. * The configuration is merged with the default configuration from the intlayer config file. */ export declare const getAppLogger: (configuration?: CustomIntlayerConfig) => (content: any, details?: Details) => void; //# sourceMappingURL=logger.d.ts.map