Announcement

Collapse
No announcement yet.

In Code Template: Display Channel Name to Logger

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

  • 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
Working...
X