Пример #1
0
 /// <summary>
 /// Appends the method properties.
 /// </summary>
 /// <param name="logInfo">Obj log info.</param>
 /// <param name="callingMethod">Obj calling method.</param>
 protected void AppendMethodProperties(LogInfo logInfo,
                                       MethodBase callingMethod)
 {
     //==============================================================
     // Add method's name
     //==============================================================
     if (logInfo == null)
     {
         throw new ArgumentNullException("loginfo", "Location can not be null");
     }
     else
     {
         logInfo.InsertFirst(new LogParameter("Method", callingMethod.Name));
     }
 }
Пример #2
0
        /// <summary>
        /// Appends the standard location.
        /// </summary>
        /// <param name="logInfo">Obj log info.</param>
        /// <param name="location">Enm location.</param>
        protected static void AppendStandardLocation(LogInfo logInfo,
                                                     LogStandardLocation location)
        {
            //==============================================================
            // Add standard socation
            //==============================================================
            if (logInfo == null)
            {
                throw new ArgumentNullException("logInfo", "logInfo cannot be a null reference");
            }
            else
            {

                logInfo.InsertFirst(new LogParameter("Location", location.ToString()));
            }
        }