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,
uboot set up nfs parameter ——linux kernel use nfs Mode to load the root file system rootfs( Six ) Huawei's limited old rivals benefit the most ? More and more people divide the cake !keras from dataframe Read data and enhance the data for training ( classification + division )keras Data generator -- Data enhancement JAVA Convert a string to a numeric type springboot Multi profile configuration common 5 species JAVA Runtime exception @Repository The role of annotations ( Essence )2020 year 6 month 26 day C# Class library File read and write operation help class mybatis-config.xml Set default value configuration