1.0.0 • Published 4 years ago
@primaxx/logger v1.0.0
Logger that you can use for anything you want.
Install
$ npm install @stargaze/logger
Usage
Create new logger instance
const logger = new Logger({ path: 'myPath', filename: 'myFilename.log' });
Log to the file
logger.log({ foo: 'bar', field: 'success' });
Find logs matching provided arguments
logger.findLogs({ foo: 'bar' });
Remove all logs from the file
logger.removeLogs();
Contributing
- Fork it (https://github.com/PiotrBlachnio/npm-logger/fork)
- Create your feature branch (git checkout -b feature/fooBar)
- Commit your changes (git commit -am 'Add some fooBar')
- Push to the branch (git push origin feature/fooBar)
- Create a new Pull Request