@blueworld/bunyan-windows-eventlog
TypeScript icon, indicating that this package has built-in type declarations

2.0.10 • Public • Published

Windows Event Log stream for Bunyan

A simple Windows Event Log stream for Bunyan.

Installation

npm install @blueworld/bunyan-windows-eventlog

Basic Usage

var bunyan = require("bunyan");
var EventLog = require("@blueworld/bunyan-windows-eventlog");

var _systemLogger = {
	src: false,
	name: "systemLogger",
	serializers: bunyan.stdSerializers,
	streams: [
		{
			level: "info",
			stream: new EventLog()
		}
	]
};

var logger = bunyan.createLogger(_systemLogger);

logger.info(
	{
		id: 999
	},
	"bunyan-eventlog test successful"
);

Note

All of the usual event log message rules apply. For example, the event ID must be between 1 - 1000.

Readme

Keywords

Package Sidebar

Install

npm i @blueworld/bunyan-windows-eventlog

Weekly Downloads

2

Version

2.0.10

License

GPL-3.0-or-later

Unpacked Size

8.47 kB

Total Files

7

Last publish

Collaborators

  • tomaszbrue