Configure the Format of Log Messages - Precisely_EnterWorks - EnterWorks - 11.0

EnterWorks Guide

Product type
Software
Portfolio
Verify
Product family
EnterWorks
Product
Precisely EnterWorks
Precisely EnterWorks > EnterWorks™ software
Version
11.0
ft:locale
en-US
Product name
Precisely EnterWorks
ft:title
EnterWorks Guide
Copyright
2024
First publish date
2007
ft:lastEdition
2025-01-21
ft:lastPublication
2025-01-21T05:56:06.852000
Log messages can be configured to output as a string or as JSON key value pairs in the following format.
{ 
    "time": "message", 
    "level": "message", 
    "component": "message", 
    "message": "message", 
    "exception": "optional-message"
}

To configure the log output format:

  1. Stop all EnterWorks services.
  2. Update the shared configuration properties with the value given below. If the setting does not appear in the sharedConfig.properties files, add it to the files.
    • debug.file.msg.format.type: Specifies whether the output should be JSON format or a string format.

      • debug.file.msg.format.type=old: Log messages will use the legacy string format. This is the default setting.

      • debug.file.msg.format.type =json: Log messages will use the JSON format.

  3. Restart EnterWorks Services.