@apexdiscord/logger
v1.0.0
Published
A central logging solution with file, console and Prometheus metrics support.
Downloads
7
Readme
logger
A central logging solution built for Apex but usable universally. Supports file logging and colored console logging out of the box, with easy functionality for adding other transports.
Usage
const { Logger, FileTransport, ConsoleTransport } = require('@apexdiscord/logger');
const logger = new Logger([
new ConsoleTransport(),
new FileTransport('logs/info.log', 'logs/error.log')
]);
logger.log('Hello world');