예제 #1
0
        public static void LogWrite(string strModule, string strMsg)
        {
            try
            {
                if (clsLog == null)
                {
                    return;
                }

                string strMessage = string.Format("[{0}] [{1}] {2}", strLogHeader, strModule, strMsg);
                clsLog.WLog(strMessage);
            }
            catch
            {}
        }
예제 #2
0
        /// <summary>
        /// Exception 처리를 한다. 발생전 Log기록 후 발생.
        /// </summary>
        /// <param name="ex"></param>
        private void ProcException(Exception ex)
        {
            string strLog = string.Empty;

            strLog = string.Format("[{0}]", enPLCType.ToString());

            strLog = string.Format("Error : {0} [Msg] {1} - {2}", strLog, ex.Message, ex.ToString());

            clsLog.WLog(strLog);
        }