123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /* ==============================================================================
- * 功能描述:FLogger
- * 创 建 者:Garrett
- * 创建日期:2019/8/2 16:07:06
- * ==============================================================================*/
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Net.Mime;
- using System.Text;
- using System.Threading.Tasks;
- namespace ExportStart
- {
- /// <summary>
- /// FLogger
- /// </summary>
- class FLogger
- {
- private string m_LoggerPath = @"D:\log.txt";
- private FLogger()
- { }
- private static FLogger m_Instance = null;
- public static FLogger Instance
- {
- get
- {
- if(m_Instance==null)
- m_Instance=new FLogger();
- return m_Instance;
- }
- }
- public void Debug(string str)
- {
- File.AppendAllText(m_LoggerPath,str+"\r\n");
- }
- }
- }
|