0
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
Responses (3)
  • Accepted Answer

    Tuesday, May 14 2019, 05:05 PM - #Permalink
    0
    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.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 15 2019, 02:19 AM - #Permalink
    0
    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
    Like
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 15 2019, 08:10 AM - #Permalink
    0
    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.
    Like
    The reply is currently minimized Show
Your Reply

Recent Tweets