Announcement

Collapse
No announcement yet.

Show Channel Name instead of Channel ID in Server Log

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

  • Show Channel Name instead of Channel ID in Server Log

    Hi, I think I had read somewhere about how to customize the Server log and see the channel Name instead of the ID. But can't remember the source. Maybe someone could help me here. For example:

    Code:
    [2018-12-13 15:58:05,567]  ERROR (com.mirth.connect.connectors.tcp.TcpReceiver:738): Error receiving message (TCP Listener "Source" on channel 70adda92-0034-4b11-949a-f8b83dc29b96).
    java.net.SocketException: Software caused connection abort: recv failed
    	at java.net.SocketInputStream.socketRead0(Native Method)
    	at java.net.SocketInputStream.socketRead(Unknown Source)
    	at java.net.SocketInputStream.read(Unknown Source)
    	at java.net.SocketInputStream.read(Unknown Source)
    	at java.io.BufferedInputStream.fill(Unknown Source)
    	at java.io.BufferedInputStream.read(Unknown Source)
    	at com.mirth.connect.model.transmission.framemode.FrameStreamHandler.read(FrameStreamHandler.java:120)
    	at com.mirth.connect.connectors.tcp.TcpReceiver$TcpReader.readBytes(TcpReceiver.java:805)
    	at com.mirth.connect.connectors.tcp.TcpReceiver$TcpReader.call(TcpReceiver.java:612)
    	at com.mirth.connect.connectors.tcp.TcpReceiver$TcpReader.call(TcpReceiver.java:504)
    	at java.util.concurrent.FutureTask.run(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    Work for a NPO health care provider in Berlin
    • Current Version of MC 3.4.1.770 with the onboard MySQL Database on a Windows Server 2012 R2

  • #2
    You can customize the pattern used in log4j.properties. But that won't change the message content of the log entry, and that's where the channel ID is.
    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.

    Comment


    • #3
      Ok, thank you for your answer. That means, that I should customize and throw an error with the logger function, if I want to display the Channel Name instead of the ID in the log information.
      Work for a NPO health care provider in Berlin
      • Current Version of MC 3.4.1.770 with the onboard MySQL Database on a Windows Server 2012 R2

      Comment

      Working...
      X