Exemplo n.º 1
0
        public void Log(List <AbstractLogInfo> logInfo)
        {
#if DEBUG
            Console.WriteLine("===================================START=======================================");
            Console.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + " " + logInfo.First().GetType().Name);
            logInfo.ForEach(Console.WriteLine);
            Console.WriteLine("=================================== END =======================================");
#endif
            if (logInfo == null || logInfo.Count == 0)
            {
                return;
            }

            // You can rerite rewrite this logic to implement your log persistence logic.
            MemoryQueue.BatchEnqueue(logInfo);
        }