HAPI logging only depends on the Logger implementation and configuration in your classpath. It does not force debug outputs by itself, e.g. by contributing a log4.xml somewhere. Currently, HAPI uses commons-logging, and due to commons-logging's runtime resolution of concrete logging libraries (e.g. see http://commons.apache.org/logging/guide.html#Quick%20Start) it may behave differently for each setup. Specifically, if there's a log4j jar, it will use this, otherwise it defaults to java.util.logging. So check the logger configuration in your classpath; probably a root logger is set to "debug" level.
regards Christian Charles D. Fisher wrote: > > > I am running a junit test in Eclipse that uses HAPI and MyBatis. There is > a lot of logging output to the Eclipse console, and it seems to be from > the > HAPI parser: > > ... > DEBUG [main] - Match exists after position ORCOBRNTEOBXNTECTI:OBXNTE(1) > for > OBR? true > DEBUG [main] - Match exists after position OBXNTE:NTE(0) for OBR? true > DEBUG [main] - MessageIterator.hasNext() in direction OBR? true > DEBUG [main] - MessageIterator.hasNext() in direction OBR? true > DEBUG [main] - PipeParser iterating message in direction OBR at CTI > DEBUG [main] - Match exists after position > PIDPD1NK1NTEPV1PV2ORCOBRNTEOBXNTECTI:ORCOBRNTEOBXNTECTI(0) for OBR? true > DEBUG [main] - Match exists after position ORCOBRNTEOBXNTECTI:CTI(0) for > OBR? true > DEBUG [main] - MessageIterator.hasNext() in direction OBR? true > DEBUG [main] - MessageIterator.hasNext() in direction OBR? true > ... > > I want to turn this off but I don't know where the hooks are to do so. > Can > anyone tell me? > > Charles Fisher > Division of Epidemiology > New York State Dept. of Health > 518-474-2735 > IMPORTANT NOTICE: This e-mail and any attachments may contain confidential > or sensitive information which is, or may be, legally privileged or > otherwise protected by law from further disclosure. It is intended only > for the addressee. If you received this in error or from someone who was > not authorized to send it to you, please do not distribute, copy or use it > or any attachments. Please notify the sender immediately by reply e-mail > and delete this from your system. Thank you for your cooperation. > > > ------------------------------------------------------------------------------ > RSA® Conference 2012 > Save $700 by Nov 18 > Register now! > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Hl7api-devel mailing list > Hl7api-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > -- View this message in context: http://old.nabble.com/Turning-off-debugging-output-tp32766566p32767299.html Sent from the hl7api-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------------ RSA® Conference 2012 Save $700 by Nov 18 Register now! http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Hl7api-devel mailing list Hl7api-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hl7api-devel