Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  MXLogger and MXLoggerFactory classes

    Posted 01/09/24 03:14 AM

    Hi,

    MXLogger and MXLoggerFactory, are these two classes registered somewhere in Maximo? How does Maximo out of the box knows to pick these two classes by default for logging? 

    Regards,

    Suhas



    ------------------------------
    Suhas Joshi
    Pune
    ------------------------------


  • 2.  RE: MXLogger and MXLoggerFactory classes

    Posted 01/09/24 06:55 AM

    Hi! 

    It is defined in class for logging services. 

    But what do you want to achieve in the final?



    ------------------------------
    Andrey Ilinskiy
    Handz.on
    https://www.on.de/
    München
    ------------------------------



  • 3.  RE: MXLogger and MXLoggerFactory classes

    Posted 01/09/24 07:24 AM

    Couple of things we want to try. Either try and extend this class and see if we can add additional info on top of what Maximo already has (like username, ip address etc.) OR see if we can create altogether a custom logger just like MXLogger and add custom solution on top of it. For the second part I wanted to understand what it takes to make Maximo understand that it has to point to new custom logger instead of MXLogger.

    Regards,

    Suhas



    ------------------------------
    Suhas Joshi
    Pune
    ------------------------------



  • 4.  RE: MXLogger and MXLoggerFactory classes

    Posted 01/12/24 01:41 AM

    Hi,

    Just to elaborate more on this, we are looking for solution to below problem statement:

    If I set the log to DEBUG say for example for integrations, it will print the complete payload in the logs where it may also log some sensitive information about clients data. We want to avoid that data to be printed in the logs. So we are essentially trying to overwrite the product behavior. Is this possible?

    Regards,

    Suhas



    ------------------------------
    Suhas Joshi
    Pune
    ------------------------------



  • 5.  RE: MXLogger and MXLoggerFactory classes

    Posted 01/15/24 03:13 AM

    It isn't possible to achieve what you want without modifying the IBM core classes.

    Modifying the classes would break the license agreement and meant hat IBM would not support the software.

    The best solution would be to use operating system level security controls to restrict access to the log files. Generally only system administrators should have access to the logs because of the information stored in them.



    ------------------------------
    Mark Robbins
    Support Lead/Technical Design Authority / IBM Champion 2017 - 2023
    Cohesive (previously Vetasi Limited)
    https://www.linkedin.com/pulse/maximo-support-advice-from-non-ibm-engineer-article-mark-robbins/
    ------------------------------