string strpath = strlogpath + "\\" + strdate + "\\";
filename += datetime.today.tostring("yyyymmdd").replace("/", "").replace("-", "").replace("\\", "").replace(" ", "").replace(":", "").replace(":", "");
filename += "_" + logtype.trim() + ".log";
string fullpath = strpath + filename;
using (streamwriter output = new streamwriter(fullpath, true, system.text.encoding.getencoding("gb2312")))
}catch (exception error)}}
}}
C 寫日誌類
using system using system.data using system.configuration using system.web using system.web.security using system.web.ui using system.web.ui.webcontro...
C 日誌操作類
using system using system.collections.generic using system.web using system.threading using system.io using system.text.regularexpressions namespace x...
錯誤日誌類C
using system using system.collections.generic using system.linq using system.text using system.windows.forms using system.io namespace wisdomcity.enti...