towerofpower256 / davidmac.pro

My personal website
0 stars 1 forks source link

posts/2024-05-10-sn-transform-log/ #32

Open utterances-bot opened 4 months ago

utterances-bot commented 4 months ago

Why your ServiceNow transform logging doesn't work

You feel like you're going mad. You've used log.info in your transform scripts, but there's no messages getting logged. Here's why it does that and how to change it.

https://davidmac.pro/posts/2024-05-10-sn-transform-log/

APraestegaard commented 4 months ago

Thank you so much David. I have PowerShell script that collects the json from those log to analyze both identification- and reconciliation rule statistics. I never got to understand the reason why the logs were suddenly gone.

/Anders

towerofpower256 commented 4 months ago

I know, right? One day it's working fine, then suddenly all your helpful logging is gone.

Happy I could shed some light on it 👍

APraestegaard commented 4 months ago

I worked as a consultant at the time, and actually saw it work (logs came fine) on one customers instances and not on the other. I even experienced the same log coming twice (duplicate) in at one customer.