UNPKG

simple-leveled-log-methods

Version:

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

18 lines (17 loc) 465 B
import { LogLevel } from './constants'; export declare const formatLogContentsForEnvironment: ({ level, timestamp, message, metadata, }: { level: LogLevel; timestamp: string; message: string; metadata?: Record<string, any>; }) => string | { level: LogLevel; timestamp: string; message: string; metadata: string; } | { level: LogLevel; timestamp: string; message: string; metadata: Record<string, any> | undefined; };