An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# debugfilelog [![Build Status](https://travis-ci.org/fabiosantoscode/debugfilelog.svg?branch=master)](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
```