web stats
Code template logging - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 03-10-2010, 11:12 AM
RadEgr RadEgr is offline
What's HL7?
 
Join Date: Oct 2009
Posts: 2
RadEgr is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 03-10-2010, 12:19 PM
jbartels jbartels is offline
Mirth Guru
 
Join Date: Oct 2006
Posts: 719
jbartels is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 03-11-2010, 05:19 AM
RadEgr RadEgr is offline
What's HL7?
 
Join Date: Oct 2009
Posts: 2
RadEgr is on a distinguished road
Default

Thanks Jon, you're quite correct.

I had a semantic error which was causing strange behavior.
Reply With Quote
Reply

Tags
code template, log4j, logger, logging

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 12:55 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation