1.0.10 • Published 10 months ago

@bracketed/logger v1.0.10

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
10 months ago

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.

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

Install via yarn or npm:

yarn add @bracketed/logger
npm install --save @bracketed/logger
// 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!');

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.

1.0.10

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago