Closed rossanthony closed 6 years ago
You'd have to add another transform stream before SafeJson
and attach the value there.
Thanks @arb, I suspected that might be the only option. Do you know of any good examples showing how to setup a custom transform stream?
The tests for good would be a good place to start. Not sure outside of that as people seem to create custom transform streams at the application level and not open source.
Looked at the source for 'good-console' that served as a good starting point. Thanks a lot for your help.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
We are using 'good' with 'good-squeeze' and 'SafeJson' for logging and the stdout is being consumed by a logging service called Splunk. We have lots of apps and want to be able to easily filter by an AppID.
Is it possible to add a custom field via the config of 'good' or maybe 'good-squeeze', so we can insert a static app identifier to the top level of every object logged by good?
For example: