I am looking to provide a custom logging provider. When I read the docs found here:
I see that I am responsible for returning a function that takes a
msg as input. Unfortunately, I am not finding what the structure/content of
msg might contain. Can we have that described and ideally added to the documentation?
The message can contain anything you like, there is nothing special about it.
In this instance,
msg is a logging event message, so it does have a predefined set of properties.
Will look at adding some docs on it.
In the meantime, here's the default console logger so you can see what properties it uses: node-red/log.js at bccfd21cf46da7dfdde9653466f218fb3459ad7d · node-red/node-red · GitHub
I stand corrected. Thanks. That means I have misunderstood something, I need to have a more detailed play with this.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.