Menu

#63 logging incoming/outgoing messages

open
nobody
None
5
2012-07-24
2012-07-24
Anonymous
No

Hi,

I've noticed that in new version 2.0 the logging level of incoming/outgoing messages is set to debug instead of info: I mean in Responder and Initiator class.

Can be set one of the 2 log to info level? For example the rawInbound and rowOutbound.

Tnx

Discussion

  • Christian Ohr

    Christian Ohr - 2012-07-24

    You can instead set the log level of ca.uhn.hl7v2.raw.inbound and/or ca.uhn.hl7v2.raw.outbound to DEBUG, e.g. in your log4j.xml or log4j.properties when you use log4j as logger implementation.

     
  • Christian Ohr

    Christian Ohr - 2012-07-24
    • status: open --> closed
     
  • James Agnew

    James Agnew - 2012-07-24

    I'm actually going to reopen this only as a reminder to myself (or anyone else) to get this documented. We've had a number of questions over the years about how to configure HAPI's logging, so I think it would be nice to have a page that mentions a few of the log levels that can be tweaked to expose bits of the functionality.

    As a general rule IMHO HAPI tends to be much too verbose with it's INFO level logging, but I wouldn't want to change that much without at least providing guidance on how to use its logs to debug.

     
  • James Agnew

    James Agnew - 2012-07-24
    • status: closed --> open
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.