Пример #1
0
        /// <summary>
        /// Logs the debug message.
        /// </summary>
        /// <param name="message">The message.</param>
        public void Debug(object message)
        {
            if (message is string)
            {
                writer.WriteLine(m_MessageTemplate, m_Name, m_Debug, message);
                Console.WriteLine(m_MessageTemplate, m_Name, m_Debug, message);
            }
            else
            {
                string renderText = InternalLogger.RenderLog(message);

                writer.WriteLine(m_MessageTemplate, m_Name, m_Debug, renderText);
            }

            //Console.WriteLine(m_MessageTemplate, m_Name, m_Debug, renderText);
            Console.Out.Flush();
            Console.Out.Close();
            writer.Flush();
            writer.Close();
        }