0.1.3 • Published 2 years ago

@skyraptor/logger v0.1.3

Weekly downloads
-
License
BSL
Repository
-
Last release
2 years ago

logger

Coverage Status npm dependents Downloads CI

Just a small logger class using chalk.

Based on the Logger class from SquadJS

Installation

You can install logger using the following command

npm install @skyraptor/logger

Usage

import Logger from '@skyraptor/logger'
import chalk from 'chalk'

// Determine how much to show of a module
Logger.setVerboseness('MyModule', 4)

// Set color for a module using ChalkInstance or string
Logger.setColor('MyModule', chalk.blue)

// Log message to console with verbosity 3
Logger.verbose('MyModule', 3, 'Hello World!')

Thanks

  • Thomas for creating SquadJS and the Logger class
0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.3

2 years ago