BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
Expand all | Collapse all

Log4j - Custom logging not working in Process Server environment

  • 1.  Log4j - Custom logging not working in Process Server environment

    Posted Mon July 08, 2024 03:52 AM

    Team,

    I am getting below error message when trying to log the message from service call. I have placed the log4j.xml and also provided the file path in the jvm general arguments as well. Not sure why it is throwing this error? Any suggestions to check. 

    The same code is working in workflow center environment. 

    Error - [TeamworksException name='Script Evaluation: Component.Script.fe5c5208-c0bd-4385-8942-3b088fff8c55', message='Internal Script error: com.lombardisoftware.core.TeamWorksRuntimeException: org.mozilla.javascript.EcmaError: TypeError: Cannot call property getLogger in object [JavaPackage org.apache.log4j.LogManager]. It is not a function, it is "object". (log4jcustom.js#54823)', line=-1, pos=-1 nested=<none>]".



    ------------------------------
    RK Chandra
    ------------------------------


  • 2.  RE: Log4j - Custom logging not working in Process Server environment

    Posted Tue July 09, 2024 06:10 PM

    For logging to a specific file, please see my answer and code snippet in BAW Custom logging.



    ------------------------------
    Grant Taylor
    ------------------------------