Page 1 of 1

best practice for log output

Posted: Fri Mar 21, 2025 4:40 pm
by May
Hey fellow switch lovers,

so far I developed about 30 node scripts for many different use cases and ~5 apps for the app store and I am reaaaally happy how this all works out within switch.

One issue bothers me which leads to posting here: sending log files when using traffic light output connections. I am looking for some kind of teamplate or "best practice" to send out well structured log files from a traffic light connection and maybe even including the log as metadata / external dataset within the job.

What "fields" would be useful to get a good data structure for such a "log dataset"?

How do you handle this?
Anybody willing on sharing some code snippeta about this topic?

Regards
Daniel