@skyra/logger
TypeScript icon, indicating that this package has built-in type declarations

2.0.3 • Public • Published

@skyra/logger

A lightweight logger system with level support.

Features

  • Logging integration similar to @sapphire/plugin-logger.
    • Log levels
    • Colorette powered Colours
    • Timestamps
    • Logging similar to framework (registering commands, errors, successes, etc)

Usage

import { Logger } from '@skyra/logger';

const logger = new Logger();

logger.info('Hello world');
// [2022/08/04-13:28:58] INFO (19284): Hello World

logger.info('Hello, %s', 'Skyra');
// [2022/08/04-13:29:46] INFO (19284): Hello, Skyra

For ease of use, @skyra/logger re-exports all the functions from colorette.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.3162latest
2.0.4-next.b998ff044next

Version History

VersionDownloads (Last 7 Days)Published
2.0.4-next.b998ff044
2.0.4-next.5c3fc840
2.0.4-next.30f0d761
2.0.4-next.87419370
2.0.4-next.91bc9960
2.0.4-next.807a2840
2.0.4-next.fe680900
2.0.4-next.4c200f30
2.0.4-next.c4958f30
2.0.4-next.b18f2a20
2.0.4-next.17955d70
2.0.4-next.9d982e30
2.0.4-next.d92605d0
2.0.4-next.cf5c4df0
2.0.4-next.ff7c30d0
2.0.4-next.697c44f0
2.0.4-next.f4d6b500
2.0.4-next.2f5749d0
2.0.4-next.74ba3aa0
2.0.3162
2.0.20
2.0.10
2.0.00
1.0.10
1.0.00

Package Sidebar

Install

npm i @skyra/logger

Weekly Downloads

207

Version

2.0.3

License

Apache-2.0

Unpacked Size

18.5 kB

Total Files

6

Last publish

Collaborators

  • favna
  • kyranet