Beispiel #1
0
        /// <summary> Convenience method to return a named HAPI logger, without the application
        /// having to care about factories.
        ///
        /// </summary>
        /// <param name="name">Logical name of the <code>Log</code> instance to be
        /// returned (the meaning of this name is only known to the underlying
        /// logging implementation that is being wrapped)
        ///
        /// </param>
        /// <exception cref="LogConfigurationException">if a suitable <code>Log</code>
        /// instance cannot be returned
        /// </exception>
        public static HapiLog getHapiLog(System.String name)
        {
            HapiLog retVal = null;

            Log log = LogFactory.getLog(name);

            retVal = new HapiLogImpl(log);

            return(retVal);
        }
Beispiel #2
0
        /// <summary> Convenience method to return a named HAPI logger, without the application
        /// having to care about factories.
        ///
        /// </summary>
        /// <param name="clazz">Class for which a log name will be derived
        ///
        /// </param>
        /// <exception cref="LogConfigurationException">if a suitable <code>Log</code>
        /// instance cannot be returned
        /// </exception>
        public static HapiLog getHapiLog(System.Type clazz)
        {
            HapiLog retVal = null;

            Log log = LogFactory.getLog(clazz);

            retVal = new HapiLogImpl(log);

            return(retVal);
        }
Beispiel #3
0
 static HL7Exception()
 {
     ourLog = HapiLogFactory.getHapiLog(typeof(HL7Exception));
 }
Beispiel #4
0
 static Terser()
 {
     log = HapiLogFactory.getHapiLog(typeof(Terser));
 }
Beispiel #5
0
 static MessageIterator()
 {
     log = HapiLogFactory.getHapiLog(typeof(MessageIterator));
 }
Beispiel #6
0
 static HL7Exception()
 {
     ourLog = HapiLogFactory.getHapiLog(typeof(HL7Exception));
 }
 static MessageIterator()
 {
     log = HapiLogFactory.getHapiLog(typeof(MessageIterator));
 }
Beispiel #8
0
 static Terser()
 {
     log = HapiLogFactory.getHapiLog(typeof(Terser));
 }