winston-winlog3
Fork of winston-winlog2
Added:
- ability to set
Event Id
usingid
field ofmeta
parameter (with range check) - fixed double quotes handling
var winston = winlog = ; //winlog = require('../../'); winston; winston;winston;winston;
Original README.md with minor changes
Windows Event Log logger for the node.js Winston module.
Exactly like the original winston-winlog
, however uses coreybutler/node-windows
instead of jfromaniello/windowseventlogjs
so no native compiling using node-gyp
is required. Also automatically pops up a UAC box if admin permissions are required.
Installation
$ npm install winston-winlog3
$ npm install winston
Usage
Configure :
var winston = winlog = ; winston;
Then you can do:
winston; winston; winston;
And you will see
Custom event log
When adding the transport you can define a custom event log as follows:
winston;
Then you will find your logs under "Applications and Services Logs"
How it works
This transport uses the module node-windows to log events.
The transport will do nothing (doesn't throw!) if you run it on a platform other than win32.