中科院云平台架构师,专注于数字化、智能化,技术方向:云、Linux内核、AI、MES/ERP/CRM/OA、物联网、传感器、大数据、ML、微服务。
分类: 项目管理
2011-04-07 10:50:09
sealed class Log
{
private const string LogPath = @"C:\test\ex.log";
private StreamWriter log;
public static readonly Log instance = new Log();
private Log()
{
log = new StreamWriter(LogPath, true);
}
public void WriteInfo(string message)
{
WriteInfo("{0}", message);
}