Announcement

Collapse

Mirth Connect 3.12.0 Released!

Mirth Connect 3.12.0 is now available as an appliance update and on our GitHub page. This release includes database performance improvements, improves visual HL7 representation, message pruning, keystore handling, PDF generation, community contributions, and fixes several security vulnerabilities. This release also contains many improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

logger.info problem

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

  • logger.info problem

    Hello

    I'm using logger.info and logger.error in my transformer. The problem is - when I use logger.error I get an error message on my "Server Log"-Tab of the Dashbord, but when I use logger.info I don't get any message on the "Server Log"-Tab at all.

    Do you know know how to setup Mirth so that I can see not only the errors but the infos too on my "Server Log"-Tab?

    Thank you very much!

    Svetlomir

  • #2
    Re:logger.info problem

    To see the INFO messages you need to increase the log level al the log4j configuration file.

    Comment


    • #3
      Re:logger.info problem

      Thanks for the reply albertosaez,

      do you know exactly which property in the /server/conf/log4j.properties should I change in order to edit the log level?

      Greets,

      Svetlomir

      Post edited by: Svetlomir Kasabov, at: 07/07/2008 09:19

      Comment


      • #4
        For anybody who's still searching for the correct property in log4j.properties:
        in 1.8.1, it's none of the already existing properties in the log4j.properties. I added the following:
        log4j.logger.transformer=INFO
        and restarted mirth. And, I can see the logger.info() messages in the console now.

        I don't know if this property is the same for all installations so I'll describe how I have constructed it. All messages showing up in the Console have a string inside paranthesis like:
        [2009-11-05 11:56:39,334] ERROR (transformer:?): ...
        The string till the ':' seems to be the name of the logger. I used logger.error() function and saw that it was just 'transformer' in my case. Adding this to the end of the string 'log4j.logger.' gave me the correct property name to use.

        Selcuk

        Comment


        • #5
          This is very useful! Thanks!

          If you want to have the same functionality in the Javascript Writer add

          Code:
          log4j.logger.com.webreach.mirth.connectors.js.JavaScriptMessageDispatcher=INFO
          to the \Mirth\conf\log4j.properties
          Last edited by josealmeida; 01-14-2010, 08:35 AM.

          Comment


          • #6
            Mirth 2?

            Did the functionality for the JavaScriptMessageDispatcher change in Mirth 2? I have the logging level set to INFO, and info statements are logged to the dashboard in 1.8 but not in Mirth 2.

            This is in regards to a Javascript writer destination.

            Comment


            • #7
              Hi,

              Try
              Code:
              log4j.logger.com.mirth.connect.connectors.js.JavaScriptMessageDispatcher=INFO
              greetings,
              tobi

              Comment

              Working...
              X