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
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
/**
* Util for sending data to Graylog
*
* @param {string} message
* @param {string} severity
* @param {object} payload
* @returns {Promise<any>}
*/
Last modified | Monday, July 5, 2021, 1:59:44 PM UTC |
Last author | Glenn de Haan |
Commit ID | a09e214 |