FlowForge Node-RED Audit Logger plugin
Configure
Add the following to the settings.js
:
/** Configure the logging output */
logging: {
/** Only console logging is currently supported */
console: {
/** Level of logging to be recorded. Options are:
* fatal - only those errors which make the application unusable should be recorded
* error - record errors which are deemed fatal for a particular request + fatal errors
* warn - record problems which are non fatal + errors + fatal errors
* info - record information about the general running of the application + warn + error + fatal errors
* debug - record information which is more verbose than info + info + warn + error + fatal errors
* trace - record very detailed logging + debug + info + warn + error + fatal errors
* off - turn off all logging (doesn't affect metrics or audit)
*/
level: "info",
/** Whether or not to include metric events in the log output */
metrics: false,
/** Whether or not to include audit events in the log output */
audit: false
},
auditLogger: {
level: "off",
audit: true,
handler: require('@flowforge/nr-logger'),
loggingURL: process.env['FORGE_AUDIT_URL'],
projectID: process.env['FORGE_PROJECT_ID'],
token: process.env['FORGE_AUDIT_TOKEN']
}
},