Skip to content

adding parameter value to log #192

Closed

Description

@yosefy

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

Activity

  1. bugy commented on Feb 28, 2019

    @bugy
    Owner

    Hi, unfortunately that is not possible at the moment

  2. added this to the 1.18.0 milestone on Sep 3, 2021
  3. added a commit that references this issue on Jan 22, 2023
  4. bugy commented on Jan 22, 2023

    @bugy
    Owner

    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)

  5. added a commit that references this issue on Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions