Change default logs message/configure

Hi,
I’m looking for a way how to configure default message of logs, and what they contain.
As example within project.JSON you have information

{
  "name": "test",
  "description": "test",
  "main": "Main.xaml",
  "dependencies": {
  },
  "schemaVersion": "3.2",
  "studioVersion": "18.2",
  "projectVersion": "1.0.6912.20399",
  "runtimeOptions": {
    "autoDispose": false,
    "excludedLoggedData": [
      "Private:*",
      "*password*"
    ]
  },
  "projectType": "Workflow",
  "libraryOptions": {
    "includeOriginalXaml": false,
    "privateWorkflows": []
  }
}

Where “name” and “projectVersion” are present in default log message. Would it be possible to add another properties like
"processID":12

And have them in default log message?

Thank you for help

1 Like

Hi @Mkoval,

If you use the Add Log Fields activity in Studio it will add to your log output for all succeeding log messages. Not in the project.json file.

If you only want in specific messages, you can remove with

Does that help?

Troy

The problem is first default message “process started”, which does not contain any additional field. I can add any other field after start, but logging is not consistent, as first message is going to miss some of the fields.

That is correct and I’ve been wondering the same for the first log message. Good question and I’ll be monitoring to see if someone has a good solution.