UNPKG

simple-leveled-log-methods

Version:

a simple and opinionated logging library. plays well with aws lambda + cloudwatch.

7 lines (6 loc) 282 B
import { LogLevel } from './constants'; export type LogMethod = (message: string, metadata: any) => void; export declare const generateLogMethod: ({ level, minimalLogLevel, }: { level: LogLevel; minimalLogLevel: LogLevel; }) => (message: string, metadata?: object) => void;