UNPKG

simple-log-methods

Version:

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

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