@gimjb/log
v0.2.1
Published
A simple logger for Node.js
Downloads
11
Readme
@gimjb/log
Log to console and file.
Table of Contents
Install
npm install @gimjb/log
Usage
import path from 'path';
import log from '@gimjb/log';
// Note: Make sure the directory in which the log file will be created exists.
// The default directory is `<project root>/logs`.
log.info('Hello world!');
log.warn('Hello world!');
log.error('Hello world!');
Contributing
Contributions are welcome! Please read the Code of Conduct and Contributing documents before contributing.
License
This project is licensed under the MIT-0 License; see the LICENSE.md file for details.