Skip to content

Commit 6b3c3f0

Browse files
committed
Merge pull request #193 from DanielOchoa/update-readme
add logging to file example to readme
2 parents 8c97818 + 34e51db commit 6b3c3f0

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

Readme.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ setInterval(function(){
5353

5454
#### Windows note
5555

56-
On Windows the environment variable is set using the `set` command.
57-
56+
On Windows the environment variable is set using the `set` command.
57+
5858
```cmd
5959
set DEBUG=*,-not_this
6060
```
@@ -147,6 +147,16 @@ error('now goes to stdout via console.info');
147147
log('still goes to stdout, but via console.info now');
148148
```
149149

150+
### Save debug output to a file
151+
152+
You can save all debug statements to a file by piping them.
153+
154+
Example:
155+
156+
```bash
157+
$ DEBUG_FD=3 node your-app.js 3> whatever.log
158+
```
159+
150160
## Authors
151161

152162
- TJ Holowaychuk

0 commit comments

Comments
 (0)