From 076c0a03270b901ac7a863f99df6d9c4b00aebb2 Mon Sep 17 00:00:00 2001
From: Luis Eduardo Bonatti <luizeduardo.bonatti@windriver.com>
Date: Wed, 2 Apr 2025 10:23:55 -0300
Subject: [PATCH] Add logging_default_format_string to software.conf file

This commit add the field logging_default_format_string to the DEFAULT
section in /etc/software/software.conf to standardize the log format
for usm.

Test Plan:
PASS: Performed and upgrade from stx10 -> stx11 and verified the logs.
PASS: Fresh install of stx11 and verified the logs.
PASS: Check software.conf have logging_default_format_string key
and value.

Story: 2011357
Task: 51912

Change-Id: Id64a9dcf0a42d5a2e7218e18c81a1cf810b9f453
Signed-off-by: Luis Eduardo Bonatti <luizeduardo.bonatti@windriver.com>
---
 puppet-manifests/src/modules/platform/manifests/usm.pp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/puppet-manifests/src/modules/platform/manifests/usm.pp b/puppet-manifests/src/modules/platform/manifests/usm.pp
index 3a2f910bf..15b6392e8 100644
--- a/puppet-manifests/src/modules/platform/manifests/usm.pp
+++ b/puppet-manifests/src/modules/platform/manifests/usm.pp
@@ -32,6 +32,11 @@ class platform::usm
     owner  => 'usm',
     group  => 'usm',
     mode   => '0755',
+  }
+    # TODO(lbonatti) Remove this in stx12 release.
+    usm_config {
+    'DEFAULT/logging_default_format_string': value =>
+      '%(asctime)s.%(msecs)03d USM - %(exec)s [%(process)s:%(thread)d]: %(filename)s(%(lineno)s): %(levelname)s: %(message)s';
   }
   -> class { '::usm': }
 }