best practice for log output

Post Reply
May
Newbie
Posts: 8
Joined: Thu May 25, 2023 1:05 pm

best practice for log output

Post 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
Post Reply