Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matdombrock/verbose-zero
A simple, dependency-free verbose Javascript logging tool.
https://github.com/matdombrock/verbose-zero
dependency-free logging npm-package verbose
Last synced: about 2 months ago
JSON representation
A simple, dependency-free verbose Javascript logging tool.
- Host: GitHub
- URL: https://github.com/matdombrock/verbose-zero
- Owner: matdombrock
- License: gpl-3.0
- Created: 2019-06-19T08:01:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-19T08:27:36.000Z (over 5 years ago)
- Last Synced: 2024-10-19T10:27:38.133Z (2 months ago)
- Topics: dependency-free, logging, npm-package, verbose
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/verbose-zero
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VERBOSE-ZERO
A simple, dependency-free verbose Javascript logging tool.Does not require NodeJS but works well with it.
# INSTALL
```bash
# stable
npm install verbose-zero# latest
npm install @mdombrock/verbose-zero
```
# USAGE
```js
//require verbose-zero
const v = require('verbose-zero');
//log a message
v.log("This is a message");
//log multiple messages with one line by sending an array to logm()
v.logm(["This is a multi-part message",Date.now()]);
```
# TOGGLING VERBOSE OUTPUT
Verbose logging is on by default. You can disable or re-enable it at run-time.
```js
//disable verbose logging
v.disable();
//re-enable verbose logging
v.enable();
```