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
Version
11.0
Language
English
Product name
Precisely EnterWorks
Title
EnterWorks Guide
Copyright
2024
First publish date
2007
Last updated
2025-01-07
Published on
2025-01-07T07:44:20.997352
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.