5.1.1 • Published 1 year ago
@zoringg/logger v5.1.1
@zoringg/logger
This is the logger that we generally use in our internal projects.
import { Logger, version } from '@zoringg/logger';
const logger = new Logger(`Zorin Logger v${version}`); // Logger.from('Zorin Logger') also works!
logger.info('This is the info message');
logger.debug('This is the debug message');
logger.error('This is the error message');
logger.warn('This is the warn message');
logger.success('This is the success message');
logger.fatal('This is the fatal message');
logger.command({
command: '/ping',
channel: 'general',
user: 'Zorin',
guild: 'Zorin Server'
})
logger.trace('This is the trace message');
Output:
Made with 💙 by a lot of people