|
|
@@ -7,10 +7,11 @@ namespace HKLog |
|
|
|
{ |
|
|
|
public static void Init(string input) |
|
|
|
{ |
|
|
|
var path = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Logs",$"{input}.log"); |
|
|
|
//日志 |
|
|
|
Log.Logger = new LoggerConfiguration() |
|
|
|
.MinimumLevel.Information() |
|
|
|
.WriteTo.File($"D:\\HK刷卡端正式环境\\Logs\\{input}.log", rollingInterval: RollingInterval.Day) |
|
|
|
.WriteTo.File(path, rollingInterval: RollingInterval.Day) |
|
|
|
.CreateLogger(); |
|
|
|
} |
|
|
|
public static void WriteInfo(string msg) |
|
|
|