예제 #1
0
        public void WriteLine(object infoData)
        {
            if (infoData is InfoData)
            {
                InfoData data = infoData as InfoData;
                data.AddNewLine();

                Write(data);
            }
            else
            {
                Error("Logger object must be InfoData.");
            }
        }
예제 #2
0
        public void Write(object infoData)
        {
            if (infoData is InfoData)
            {
                InfoData data    = infoData as InfoData;
                string   title   = data.title;
                string   content = data.content;
                InfoType type    = data.type;

                if (string.IsNullOrEmpty(title))
                {
                    LoggerPool.ForEach(x => x.Write(content, type));
                }
                else
                {
                    LoggerPool.ForEach(x => x.Write(title, content, type));
                }
            }
            else
            {
                Error("Logger object must be InfoData.");
            }
        }
예제 #3
0
        public void Write(string content, InfoType type = InfoType.Debug)
        {
            InfoData data = new InfoData(content, type);

            Write(data);
        }
예제 #4
0
        public void WriteLine(string title, string content, InfoType type = InfoType.Debug)
        {
            InfoData data = new InfoData(title, content, type);

            WriteLine(data);
        }