Adding logging & metric recording configuration via settings

This commit is contained in:
hbeeken
2015-01-29 13:48:50 +00:00
committed by Nick O'Leary
parent a22f819f40
commit b052324d36
9 changed files with 75 additions and 13 deletions

View File

@@ -132,6 +132,18 @@ module.exports = {
// os:require('os'),
// bonescript:require('bonescript'),
// arduino:require('duino')
}
},
// 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
logLevel: "info",
// Whether metrics are reported
metricsOn: false
}