1.0.2 • Published 1 year ago

switch-log v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

switch-log

Installation

Open terminal and copy-past the command 🤝

npm i switch-log

Usage

import Log from 'switch-log'

// Create a log instance
const log = new Log();


// Use the logger
log.info('This is an info message')
log.warn('This is a warning message')
log.error('This is an error message')

Disable Log

If you want to disable logging you can pass options to Log.

import Log from 'switch-log'

// Create a log instance with options
const log = new Log({
    disabled:true // change condition according to you
});
1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago