Skip to content

Commit

Permalink
Merge pull request #193 from DanielOchoa/update-readme
Browse files Browse the repository at this point in the history
add logging to file example to readme
  • Loading branch information
TooTallNate committed Apr 2, 2015
2 parents 8c97818 + 34e51db commit 6b3c3f0
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 6b3c3f0

Please sign in to comment.