扫二维码与项目经理沟通
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流
public static void WriteLog( string strLog )
{
string strDate = DateTime.Now.ToString( g_strDateFormate );
string strLogDir = AppDomain.CurrentDomain.BaseDirectory + "Log\\SysLog\\";
if ( !Directory.Exists( strLogDir ) )
Directory.CreateDirectory( strLogDir );
string strDateTime = DateTime.Now.ToString( g_strDateTimeFormate_2 );
strLog = string.Format( "[{0}] {1}\r\n", strDateTime, strLog );
string strLogFilePath = string.Format( "{0}/{1}.txt", strLogDir, strDate );
File.AppendAllText( strLogFilePath, strLog );
}
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流