@ac-moore-inc/splunk-logger
An easy to use splunk logging utility.
Last updated 10 months ago by ari-acm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @ac-moore-inc/splunk-logger 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.4                                ...           latest (10 months ago)

5 Versions

  • 1.0.4                                ...           10 months ago
  • 1.0.3                                ...           10 months ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 5
Last Month 15
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |