script-server
script-server copied to clipboard
adding parameter value to log
in logging.json i see
"simple": { "format": "%(asctime)s [%(name)s.%(levelname)s] %(message)s" }
i need to put first parameter value in there.
(to know which playbook is ran)
is it possible?
thanks
Hi, unfortunately that is not possible at the moment
Done, now it's possible to yse ${parameter name} syntax to set logging filename template. Since parameters belong to scripts and not to a server, I added a possibility to override logging configuration for every script. The syntax is the same.
(you can still configure parameter substitution on a server level, but it's not recommended)