web stats
[3.0] Per channel logging ? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 01-22-2014, 04:10 AM
lionelroux lionelroux is offline
OBX.2 Kenobi
 
Join Date: Apr 2013
Posts: 82
lionelroux is on a distinguished road
Exclamation [3.0] Per channel logging ?

Hello,

I've set up multiple channels on a mirth 3.0 instance.
All channels log information (using logger.debug, logger.info, ...) in the same file and on the same "console" in the GUI (server log tab).

Is there a way to :

1/ set up mutilple tabs ?
2/ separate logs into several files ?

For information, I use the default log4J configuration.

Thanks in advance fro your help.
Reply With Quote
  #2  
Old 01-22-2014, 08:02 AM
narupley's Avatar
narupley narupley is offline
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,125
narupley is on a distinguished road
Default

Adding multiple tabs and directing certain log entries to certain tabs is possible, but it would require custom extension development. We already have a plugin point for extra tabs in the dashboard; the server log and connection info tabs are already setup as plugins.

Regarding a custom log4j setup, yes you can edit log4j.properties to add your own appenders with their own directory settings. Again this would require some custom coding.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #3  
Old 02-16-2016, 09:04 PM
skumar10 skumar10 is offline
What's HL7?
 
Join Date: Sep 2009
Posts: 5
skumar10 is on a distinguished road
Default

It is often useful to have a set of logs file per channel and to also log the name of the channel for every message logged. Not only does this make debugging easier it makes it easy to track production issues proactively. You can do this with log4j appenders using the log4j.properties configuration file as follows: (windows OS). Check out my post for the process:

http://www.mirthcorp.com/community/f...519#post253519
Reply With Quote
Reply

Tags
log

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 02:38 AM.


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