-
-
Notifications
You must be signed in to change notification settings - Fork 220
Description
Is your feature request related to a problem? Please describe.
I'd like to have zwave-js-ui (and all programs launched by it) use json formatted logs. It also easier parsing and analysis (+create some alerts when some patterns emerge).
Describe the solution you'd like
Ideally, this would be configured via settings.json
with an option jsonLogs: true
. This options would disable color logs and configure the log format to json for the UI and the driver.
Describe alternatives you've considered
I am currently sending my logs to datadog and wrote custom parsers. This is not sustainable and does not handle multiline messages (such as errors) which are usually the most interesting ones. It is also not shareable with other users.
Additional context
Other users have looked for it in the past: zwave-js/zwave-js#5214 #2136 zwave-js/zwave-js#3019. A custom solution has been documented zwave-js/zwave-js#6061.
Solutions presented in threads mentionned above cannot be used at the moment because logConfig from zwave driver is harcoded