1.0.4 • Published 5 years ago

@ac-moore-inc/splunk-logger v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Splunk Logger

An easy to use splunk logging utility.

Created and maintained by the A.C. Moore software engineering team.

To Use:

var splunkLogger = require('@ac-moore-inc/splunk-logger');

splunkLogger.init(config);
splunkLogger.log(eventObject, callback);

Config Object Syntax

{
  splunkUrl: 'http://urlToSplunk',
  splunkToken: 'splunk-token',
}

EventObject Syntax

{
  source: string,
  eventMsg: string,
  eventSev: string,
  errMsg: string,
  eventData: string
}

source:

The source the event is being logged from

eventMsg:

String description of what triggered the event being logged

eventSev:

Severity level of the event being logged

errMsg:

Any error message associated with the event being logged

eventData:

A JSON object containing additional information about the event being logged

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago