Announcement

Collapse
No announcement yet.

Log4j.properties to Log4j.xml

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

  • Log4j.properties to Log4j.xml

    Is there a way to use the XML version of Log4j configuration file instead of the key/value .properties version?

    I believe that a using the -D switch to set the 'log4j.configuration' system property on the java command line can override the default file it looks for. Can't quite figure out how I could do this in Mirth because of the exe's used to start it.

    Removing the .properties file causes Server Manager to show a message box that it cant find the file.

    Searched the forums and could not find anyone else trying this.

    TIA,
    Ross

  • #2
    Re:Log4j.properties to Log4j.xml

    Chris Lang

    Comment


    • #3
      Re:Log4j.properties to Log4j.xml

      Thanks for the help.

      Here is some additional info. If there is a log4j.xml file in the conf directory Mirth will attempt to use it, however the Log4j system throws parsing errors unless the following line is defined in
      Code:
      wrapper.conf
      Code:
      wrapper.java.additional.1=-Dlog4j.configuration=./conf/log4j.xml
      Cheers,
      Ross

      Comment

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎