using System; using System.IO; using System.Threading.Tasks; namespace Core.Util
{ /// <summary> /// Log help class /// </summary> public static class LogHelper { ///
<summary> /// Write log to local TXT file /// notes : The log file name is "A_log.txt", The directory is the root directory /// </summary> ///
<param name="log"> Log content </param> public static void WriteLog_LocalTxt(string log)
{ Task.Run(() => { string filePath = Path.Combine(AppDomain.CurrentDomain.
BaseDirectory, "A_log.txt"); string logContent = $
"{DateTime.Now.ToCstTime().ToString("yyyy-MM-dd HH:mm:ss")}:{log}\r\n"; File.
AppendAllText(filePath, logContent); }); } } }

Technology
©2019-2020 Toolsou All rights reserved,
html Writing about cherry trees , Writing about cherry trees It's unexpected Python Cherry tree (turtle The gorgeous style of Library ) Browser kernel ( understand )HashMap Explain in detail java Four functional interfaces ( a key , simple )os Simple use of module Some East 14 Pay change 16 salary , Sincerity or routine ?