UNPKG

@log4js2/core

Version:

log4js2 is a fast and lightweight logging library that enables logging flexibility within JavaScript/TypeScript applications, similar to Apache's [Log4j2 library](https://logging.apache.org/log4j/2.x/). It can also serve as a drop-in replacement for log4

23 lines (22 loc) 494 B
import { LogLevel, Marker } from '../'; import 'reflect-metadata'; /** * Sets the marker for the @Log decorator * * @constructor * * @param {Marker} marker */ export declare function LogMarker<T>(marker: Marker): Function; /** * Log an error on function entry * * @constructor * * @param {LogLevel} level * @param {string} message * @param {any[]} options * * @returns {Function} */ export declare function Log<T>(level: LogLevel, message: string, ...options: any[]): Function;