中科院架构师,专注企业数字化各个方面,MES/ERP/CRM/OA、物联网、传感器、大数据、ML、AI、云计算openstack、Linux、SpringCloud。
分类: 项目管理
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);
}