Skip to content

Commit

Permalink
add logging to file example to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielOchoa committed Apr 2, 2015
1 parent 8c97818 commit 34e51db
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ setInterval(function(){

#### Windows note

On Windows the environment variable is set using the `set` command.
On Windows the environment variable is set using the `set` command.

```cmd
set DEBUG=*,-not_this
```
Expand Down Expand Up @@ -147,6 +147,16 @@ error('now goes to stdout via console.info');
log('still goes to stdout, but via console.info now');
```

### Save debug output to a file

You can save all debug statements to a file by piping them.

Example:

```bash
$ DEBUG_FD=3 node your-app.js 3> whatever.log
```

## Authors

- TJ Holowaychuk
Expand Down

0 comments on commit 34e51db

Please sign in to comment.