web stats
In Code Template: Display Channel Name to Logger - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 02-26-2010, 07:55 AM
PLL_BOB PLL_BOB is offline
Mirth Newb
Join Date: Feb 2010
Posts: 8
PLL_BOB is on a distinguished road
Default In Code Template: Display Channel Name to Logger

How do I display the channel name to the log from Code Template which is us a user-defined function?

I have user_function GetNotes with a context defined as Global.

I can do:
logger.info("Channel: " + channelId + " Getting Notes)
Which will display the ChannelID and the message.

However since the Appliance shows Channel Name in most spots, I want to display channel name instead.

I tried:
var channelName = Packages.com.webreach.mirth.server.controllers.Cha nnelController.getInstance().getChannelName(channe lId);
logger.info("Channel: " + channelId + " - " + channelName + " Getting Notes");

Does not display channelName
Reply With Quote

channel name, code template, logger

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 11:53 AM.

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