Skip to content

An easy way to log Bunyan messages to the Windows Event Log.

Notifications You must be signed in to change notification settings

blueworld-gmbh/bunyan-windows-eventlog

 
 

Repository files navigation

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.

About

An easy way to log Bunyan messages to the Windows Event Log.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%