|
7 months ago | |
---|---|---|
source | 7 months ago | |
tests | 7 months ago | |
.gitignore | 7 months ago | |
.nycrc.json | 7 months ago | |
CHANGELOG.md | 7 months ago | |
LICENSE | 7 months ago | |
README.md | 7 months ago | |
package.json | 7 months ago | |
tsconfig.json | 7 months ago | |
yarn.lock | 7 months ago |
Straightforward NodeJS logging.
rotating-file-stream
as the default stream.Install Log.
yarn add @holllo/log
Create a Log instance.
import Log from '@holllo/log';
const log = new Log({
level: Log.Levels.debug,
name: 'Name'
});
Log to your heart’s content.
log.error('Oh no, an error!');
log.warn('Just a warning, no big deal.');
log.info('Some regular log stuff.');
log.debug('This shouldn\'t be in production. 🤔');
Check your logs in logs/${name}.log
.
YYYY-MM-DD HH:mm:ss,SSS Error Oh no, an error!
YYYY-MM-DD HH:mm:ss,SSS Warn Just a warning, no big deal.
YYYY-MM-DD HH:mm:ss,SSS Info Some regular log stuff.
YYYY-MM-DD HH:mm:ss,SSS Debug This shouldn't be in production. 🤔
Latest version (1.1.2) changes:
The full changelog can be found here.
Open-sourced with the MIT license.