Skip to content

Latest commit

 

History

History
87 lines (65 loc) · 3.19 KB

File metadata and controls

87 lines (65 loc) · 3.19 KB
Bracketed logo Team Bracketed - Website | Discord | Github

@bracketed/logger

An alternative to your run-of-the-mill node console logging functions! This is a package built from the source code of @sapphire/framework & @sapphire/plugin-logger to allow usage of Sapphire's logger features in regular Node.js, full credit to the authors of the pieces of code that this package is made from.

What is this?

- A Logger package built from @sapphire/framework & @sapphire/plugin-logger that uses colorette for styling.

Summary (Directory)

Installation

Install via yarn or npm:

Yarn:

yarn add @bracketed/logger

Npm:

npm install --save @bracketed/logger

Usage

// ESM
import { Logger, LogLevel } from '@bracketed/logger';
const console = new Logger();

console.info('Hello World!');
console.debug('Hello World!');
console.warn('Hello World!');
console.error('Hello World!');
console.fatal('Hello World!');
console.trace('Hello World!');
console.write(LogLevel.Info, 'Hello World!');
// CJS
const { Logger, LogLevel } = require('@bracketed/logger');
const console = new Logger();

console.info('Hello World!');
console.debug('Hello World!');
console.warn('Hello World!');
console.error('Hello World!');
console.fatal('Hello World!');
console.trace('Hello World!');
console.write(LogLevel.Info, 'Hello World!');

Contribution & Help

Feel free to contribute to this project, join our discord and help us with future development of Project Bracketed. Please also notify us of errors within our projects as we may not be aware of them at the time.


Thanks for using our packages!

Bracketed logo Team Bracketed - Website | Discord | Github | Twitter | Back To The Top

Discord Banner