Skip to content

Commit cec892c

Browse files
committed
Update transports.md
Added verbose description for winlog2
1 parent 077af1e commit cec892c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/transports.md

+16
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,22 @@ The Airbrake transport utilises the node-airbrake module to send logs to the Air
398398
* __appVersion__: Extra string or number sent to Airbrake. (optional, default: null)
399399
* __consoleLogError__: Toggle the logging of errors to console when the current environment is in the developmentEnvironments array. (optional, default: false)
400400

401+
### Winlog2 Transport
402+
403+
[winston-winlog2][19] is a Windows Event log transport:
404+
405+
``` js
406+
var winston = require('winston');
407+
winston.add(require('winston-winlog2'), options);
408+
```
409+
410+
The winlog2 transport uses the following options:
411+
412+
* __name__: Transport name
413+
* __eventLog__: Log type (default: 'APPLICATION')
414+
* __source__: Name of application which will appear in event log (default: 'node')
415+
416+
401417
## Find more Transports
402418

403419
``` bash

0 commit comments

Comments
 (0)