script-server icon indicating copy to clipboard operation
script-server copied to clipboard

adding parameter value to log

Open yosefy opened this issue 6 years ago • 2 comments

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

yosefy avatar Feb 28 '19 11:02 yosefy

Hi, unfortunately that is not possible at the moment

bugy avatar Feb 28 '19 11:02 bugy

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)

bugy avatar Jan 22 '23 16:01 bugy