I'm trying to improve the audit log readability for various automations and was wondering if there is a way to add values to the audit log with a line break to make large blocks of text more readable.
As an example, I want to log the web response status and category in an automation rule, and have the following in the log message block:
Status: {{webResponse.status}} Category: {{webResponse.statusCategory}}
I would prefer to have it displayed like:
Status: 200
Category: SUCCESS
I've tried a few different methods for line breaks, concatenation, etc. but with no luck. Is it even possible to format the output to the log without having to add tons of steps to log individual values?
Sadly, nothing built-in yet to help with this.
There are many open suggestions to improve the log usability / readability, including some in progress ones. Here are some examples you may watch / vote for:
https://jira.atlassian.com/browse/AUTO-28
https://jira.atlassian.com/browse/AUTO-36
https://jira.atlassian.com/browse/AUTO-51
One possible workaround to adding a bunch of Log actions is (for some cases) add a debug wrapper around smart value expressions:
{{#debug}}some smart value expression{{/}}
That will write to the audit log as a section which can be expanded, when needed.
For more detail analysis, you could add your own keywords to the Log write text, copy-and-paste the log to a text editor, and then search-and-replace the keyword for newlines.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.