예제 #1
0
        public void Logger_Test()
        {
            var sql = "INSERT XXX INTO XXX";

            ILog log1 = new DaoLog();

            log1.Debug(sql, new LogInfo { MethodInstance = MethodBase.GetCurrentMethod(), ThreadInstance = Thread.CurrentThread });

            //ILog log2 = new UserLog();

            //log2.Debug(sql, new LogInfo() { UserClient = new UserClientInfo { UserIP = IPLocation.GetIP(), UserID = 0, UserBrowser = BrowserInfo.GetBrowser() } });

            Assert.IsTrue(true);
        }
예제 #2
0
        public void LoggerException_Test()
        {
            try
            {
                var str = "0000-0000";
                var g = new Guid(str);
            }
            catch (Exception ex)
            {
                ILog log = new DaoLog();

                log.Debug(ex, new LogInfo { MethodInstance = MethodBase.GetCurrentMethod(), ThreadInstance = Thread.CurrentThread });
            }

            Assert.IsTrue(true);
        }