예제 #1
0
        static public void Info(params string[] msg)
        {
            if (m_LogLv > eLogLevel.LV_INFO)
            {
                return;
            }
            if (!m_EnableType[(int)eLogLevel.LV_INFO])
            {
                return;
            }

            tmp_st.Clear();
            for (int i = 0; i < msg.Length; ++i)
            {
                tmp_st = tmp_st.Append(msg[i]);
            }
            string log = "[info]" + tmp_st.ToString();

            Console.WriteLine(log);
            if (m_Log2File)
            {
                Log4Helper.Info(log);
            }
            if (m_MsgFun != null)
            {
                m_MsgFun(log);
            }
        }
예제 #2
0
        static public void Info(string msg)
        {
            if (m_LogLv > eLogLevel.LV_INFO)
            {
                return;
            }
            if (!m_EnableType[(int)eLogLevel.LV_INFO])
            {
                return;
            }

            string log = "[info]" + msg;

            Console.WriteLine(log);
            if (m_Log2File)
            {
                Log4Helper.Info(log);
            }
            if (m_MsgFun != null)
            {
                m_MsgFun(log);
            }
        }