UNPKG

simple-log-methods

Version:

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

18 lines (17 loc) 478 B
import { type LogLevel } from '../domain/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; };