Highlighted
LucieM Honored Contributor.
Honored Contributor.
479 views

SBM - Notification server log - in milliseconds

Hi,

Our Customer needs to change granularity of notification server log.

They needs to log records in milliseconds (so not in current: dd-MM-yyyy HH:mm:ss).


They have many users, many SBM applications and notifications and it is complicated to find the problem if seconds are the most detailed information.

Is it possible to change date/time and add milliseconds, please?

Thank you

Regards

Lucie Mlynarova
0 Likes
3 Replies
Micro Focus Contributor
Micro Focus Contributor

Re: SBM - Notification server log - in milliseconds

Hi Lucie, I would recommend raising a case with support - it may be possible to modify the log4j configuration, but it would require some research. However, if you would like to share the types of issues you try to resolve by reading the logs, perhaps we can make that process easier or offer alternative approaches.
0 Likes
LucieM Honored Contributor.
Honored Contributor.

Re: SBM - Notification server log - in milliseconds

Hi Garry,

Yes there is notificationsrv.log4j.properties file
(C:\Program Files\Micro Focus\SBM\Common\Tomcat 7.0\server\default\webapps\notificationsrv\WEB-INF\notificationsrv.log4j.properties)
and you can change:
...%X{NAMESPACE} %-5p %d{dd-MM-yyyy HH:mm:ss} [%c{1}] -- %m %n
to:
...%-5p %d{ISO8601} [%c{1}] -- %m %n

Then it works OK as the Customer needs.

It works OK in case you restart SBM services or SBM server. But after you use Apply in SBM Configurator, the default values returns back.

So, we are looking for another way…

Thank you
Regards
Lucie
Micro Focus Contributor
Micro Focus Contributor

Re: SBM - Notification server log - in milliseconds

You can probably make the file read-only on the file system to prevent Configurator from making changes to it. The downside is that Configurator won't be able to change it when needed. I suspect Configurator really only needs to change that file when you change the level of logging for notifications, but you could review the file to see if there are other settings that seem to correlate to Configurator settings.
You could also maintain a copy of the file as you want but with a different name and merge it (using a file comparison tool) with the copy that Configurator maintains - the merge would need to happen after an apply but before starting services.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.