@apexdiscord/logger

1.0.0 • Public • Published

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');

Readme

Keywords

Package Sidebar

Install

npm i @apexdiscord/logger

Weekly Downloads

1

Version

1.0.0

License

GPL-3.0

Unpacked Size

56.8 kB

Total Files

31

Last publish

Collaborators

  • soumil07