@foal/core
Version:
Full-featured Node.js framework, with no complexity
8 lines (7 loc) • 368 B
TypeScript
export type Level = 'debug' | 'info' | 'warn' | 'error';
export declare const httpRequestMessagePrefix = "HTTP request - ";
export declare function formatMessage(level: Level, message: string, params: {
error?: Error;
[name: string]: any;
}, format: string, now: Date): string;
export declare function shouldLog(level: Level, configLogLevel: string): boolean;