Graylog provides a way to log messages in a centralized way.
This connector allows you to send messages from the backend to a Graylog instance in the GELF format.
GELF Reference Documentation: https://docs.graylog.org/en/4.0/pages/gelf.html
Please note this module is disabled by default!
Below is the default application config for the graylog module:
{
"graylog": {
"enabled": false,
"host": "log.dpdk.com",
"port": 12201,
"project_name": "",
"project_env": "local",
"middleware": false
}
}
const bootstrap = new NextBootstrap(__dirname, process.cwd(), nextConfig);
// Arguments: message, severity, payload
bootstrap.graylog.send("Something went wrong", "error", {
"arg1": "test",
"arg2": "test"
});
Additional Graylog Documentation: https://docs.graylog.org/en/4.0/index.html
Last modified | Monday, July 5, 2021, 1:59:44 PM UTC |
Last author | Glenn de Haan |
Commit ID | a09e214 |