Announcement

Collapse
No announcement yet.

Custom JAR logs

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom JAR logs

    Hello,


    I create a custom JAR to be invoked in Mirth Connect and works very well.
    My question is, how can I show the logs from the custom JAR (when in execution) in the Mirth Dashboard?


    Is that possible?



    Thank you
    Best Regards,
    Alex Neiva

  • #2
    Yes:


    Code:
    import org.apache.log4j.Logger;
    .
    .
    . 
    Logger.getRootLogger().debug("YOUR MESSAGE HERE");

    Comment


    • #3
      Hello Odo,


      thank you for your feedback.
      Unfortunately it does not work since the JAR library does not implement such methods.
      Best Regards,
      Alex Neiva

      Comment


      • #4
        Originally posted by AlexNeiva View Post
        since the JAR library does not implement such methods.
        Not sure what you mean by that?

        You just have to include the log4j library. Then you call the line of code I wrote above and this should do the job. It is calling a static method on the Logger class of log4j (no need to implement any method)

        Comment

        Working...
        X