1.0.0 • Published 4 years ago

@primaxx/logger v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

npm (scoped) NPM

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

  1. Fork it (https://github.com/PiotrBlachnio/npm-logger/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request