Announcement

Collapse
No announcement yet.

Code template logging

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

  • Code template logging

    Anyone know what I can insert in to the log4j.properties to turn on l logging for code templates? (Right now nothing shows up for the logger.info statements.)

    Someone else figured out the code below for the transformers, I couldn't find anything on the code templates though.

    log4j.logger.transformer=INFO

    Thanks,
    Steve

  • #2
    I don't know the setting off the top of my head, but I use code templates that log every day. I think its based on where the function is called from since the code templates are just predefined functions.

    My log4j.properties file is:
    Code:
    c:\Program Files\Mirth\conf>cat log4j.properties
    #Tue Mar 09 12:26:16 PST 2010
    log4j.logger.destination-transformer=INFO
    log4j.logger.org.apache=ERROR
    log4j.logger.com.webreach.mirth.server.mule.transformers.JavaScriptTransformer=I
    NFO
    log4j.logger.org.mule.transformers=ERROR
    log4j.appender.fout.MaxBackupIndex=20
    log4j.logger.filter=INFO
    log4j.logger.org.mozilla.javascript=INFO
    log4j.rootCategory=WARN, stdout, fout
    log4j.appender.fout.File=logs/mirth.log
    log4j.logger.com.webreach.mirth.connectors.jdbc.JdbcMessageReceiver=INFO
    log4j.appender.fout.MaxFileSize=500KB
    log4j.logger.com.webreach.mirth.connectors.http.transformers.UMOMessageToHttpRes
    ponse=ERROR
    log4j.logger.com.webreach.mirth.server.util.DatabaseConnection=WARN
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    log4j.logger.shutdown=INFO
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.logger.deploy=INFO
    log4j.logger.ca.uhn.hl7v2=WARN
    log4j.logger.org.mortbay=WARN
    log4j.appender.fout.layout=org.apache.log4j.PatternLayout
    log4j.logger.com.webreach.mirth.server.mule.transformers=INFO
    log4j.appender.fout=org.apache.log4j.RollingFileAppender
    log4j.logger.com.webreach=WARN
    log4j.logger.com.webreach.mirth.connectors.soap.axis.transport.http.transformers
    .UMOMessageToHttpResponse=ERROR
    log4j.logger.org.mule=ERROR
    log4j.logger.java.sql=ERROR
    log4j.logger.postprocessor=INFO
    log4j.logger.preprocessor=INFO
    log4j.logger.org.mule.providers=ERROR
    log4j.logger.jdbc-receiver=INFO
    log4j.logger.source-transformer=INFO
    log4j.logger.com.webreach.mirth.server.mule.ExceptionStrategy=WARN
    log4j.appender.stdout.layout.ConversionPattern=%-5p %d [%t] %c\: %m%n
    log4j.logger.com.webreach.mirth.server.launcher=ERROR
    log4j.appender.fout.layout.ConversionPattern=%-5p %d [%t] %c\: %m%n
    log4j.logger.com.webreach.mirth.connectors.jdbc.JdbcMessageDispatcher=INFO
    HTH
    Jon Bartels

    Zen is hiring!!!!
    http://consultzen.com/careers/
    Talented healthcare IT professionals wanted. Engineers to sales to management.
    Good benefits, great working environment, genuinely interesting work.

    Comment


    • #3
      Thanks Jon, you're quite correct.

      I had a semantic error which was causing strange behavior.

      Comment

      Working...
      X