Narcissistic Project Managers
    Have ideas to improve npm?Join in the discussion! »

    @ac-moore-inc/splunk-logger

    1.0.4 • Public • Published

    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

    Keywords

    none

    Install

    npm i @ac-moore-inc/splunk-logger

    DownloadsWeekly Downloads

    5

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    2.56 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar