I am looking to provide a custom logging provider. When I read the docs found here:
https://nodered.org/docs/user-guide/runtime/logging#custom-logging-module
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?
Colin
4 April 2021 06:30
2
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
1 Like
Colin
4 April 2021 08:11
4
I stand corrected. Thanks. That means I have misunderstood something, I need to have a more detailed play with this.
system
Closed
18 April 2021 08:11
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.