Beispiel #1
0
            public virtual void LogInvalidFieldType(ILog log, MessagePartBean bean, string fieldName, Type fieldType, bool isCollection
                                                    )
            {
                string message = System.String.Format("Unable to extract HL7 value. The field {0}.{1} is not a {2}{3}", bean.GetType().Name
                                                      , fieldName, fieldType.Name, isCollection ? " (this is possibly an expected situation)" : string.Empty);

                if (isCollection)
                {
                    log.Info(message);
                }
                else
                {
                    log.Warn(message);
                }
            }
Beispiel #2
0
 public virtual void LogFieldNotFound(ILog log, MessagePartBean messagePartBean, string fieldName)
 {
     log.Error(System.String.Format("Unable to extract HL7 value. The bean {0} does not have the field {1}", messagePartBean.GetType
                                        ().Name, fieldName));
 }