DPDK Architecture  ->  Library (v3.4.4)

Graylog

graylog is a util for sending messages via the backend to Graylog.

Warning!: Make sure the Graylog module and middleware are enabled/configured properly before using this util

Usage

Below you will find a basic example:

import graylog from '@dpdk/library';

graylog("Something went wrong", "error", {
    "arg1": "test",
    "arg2": "test"
});

Bootstrap Graylog Documentation: Documentation

JSDoc

/**
 * Util for sending data to Graylog
 *
 * @param {string} message
 * @param {string} severity
 * @param {object} payload
 * @returns {Promise<any>}
 */
Last modifiedMonday, July 5, 2021, 1:59:44 PM UTC
Last authorGlenn de Haan
Commit IDa09e214