https://github.com/fabiosantoscode/debugfilelog
Install this globally and use it to debug where console.log can't be used. Replaces console.log writing in a file of your choice.
https://github.com/fabiosantoscode/debugfilelog
Last synced: 11 months ago
JSON representation
Install this globally and use it to debug where console.log can't be used. Replaces console.log writing in a file of your choice.
- Host: GitHub
- URL: https://github.com/fabiosantoscode/debugfilelog
- Owner: fabiosantoscode
- License: mit
- Created: 2018-11-10T17:10:30.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-10T19:09:50.000Z (about 7 years ago)
- Last Synced: 2025-02-25T08:46:43.884Z (11 months ago)
- Language: JavaScript
- 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
# debugfilelog [](https://travis-ci.org/fabiosantoscode/debugfilelog)
Install this globally and use it to debug where console.log can't be used. Replaces console.log writing in a file of your choice.
Works on node 0.10 and iojs too.
## Installation
```
$ npm i -g debugfilelog
```
## Usage
```javascript
const filelog = require('debugfilelog')('/tmp/log')
filelog('hello world!') // writes to file
```