change - 日志加载修改

master
wenjy 1 year ago
parent 2e804ff3f8
commit f89d8c2dc4

@ -39,7 +39,7 @@
<default-target-parameters xsi:type="File" createDirs="true" keepFileOpen="true" autoFlush="false" openFileFlushTimeout="10" openFileCacheTimeout="30" archiveAboveSize="52428800"
archiveNumbering="Sequence" concurrentWrites="true" encoding="UTF-8" />
<!-- 输出到文件,这个文件记录错误日志 -->
<target xsi:type="File" name="Error" fileName="Log\${shortdate}\Error.txt"
<target xsi:type="File" name="Error" fileName="Log/${shortdate}/Error.txt"
layout="
【时间】:${date} ${newline}
【级别】:${level:uppercase=true} ${newline}
@ -49,17 +49,17 @@
【异常信息】:${exception:format=ToString}${newline}
【内容】:${message}${newline}" />
<!-- 输出到文件,这个文件记录警告日志 -->
<target xsi:type="File" name="Warn" fileName="Log\${shortdate}\Warn.txt"
<target xsi:type="File" name="Warn" fileName="Log/${shortdate}/Warn.txt"
layout="
【时间】:${date} ${newline}
【内容】:${message}${newline}" />
<!-- 输出到文件,这个文件记录消息日志 -->
<target xsi:type="File" name="Info" fileName="Log\${shortdate}\Info.txt"
<target xsi:type="File" name="Info" fileName="Log/${shortdate}/Info.txt"
layout="
【时间】:${date} ${newline}
【内容】:${message}${newline}" />
<!-- 输出到文件,这个文件记录操作日志 -->
<target xsi:type="File" name="Trace" fileName="Log\${shortdate}\Trace.txt"
<target xsi:type="File" name="Trace" fileName="Log/${shortdate}/Trace.txt"
layout="
【时间】:${date} ${newline}
【内容】:${message}${newline}" />

@ -17,9 +17,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ems.CollectService.Redis",
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ems.CollectService.Analysis", "Ems.CollectService.Analysis\Ems.CollectService.Analysis.csproj", "{61813461-23F9-45B7-A002-D058A2610DBB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ems.CollectService.Timer", "Ems.CollectService.Timer\Ems.CollectService.Timer.csproj", "{68E1353B-AF61-4DBA-A956-90BA2D8FE8F5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ems.CollectService.Console", "Ems.CollectService.Console\Ems.CollectService.Console.csproj", "{B1F71EE9-86AA-49F1-BBA9-FBD5132B92F6}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Ems.CollectService.Timer", "Ems.CollectService.Timer\Ems.CollectService.Timer.csproj", "{68E1353B-AF61-4DBA-A956-90BA2D8FE8F5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -59,10 +57,6 @@ Global
{68E1353B-AF61-4DBA-A956-90BA2D8FE8F5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{68E1353B-AF61-4DBA-A956-90BA2D8FE8F5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{68E1353B-AF61-4DBA-A956-90BA2D8FE8F5}.Release|Any CPU.Build.0 = Release|Any CPU
{B1F71EE9-86AA-49F1-BBA9-FBD5132B92F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B1F71EE9-86AA-49F1-BBA9-FBD5132B92F6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B1F71EE9-86AA-49F1-BBA9-FBD5132B92F6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B1F71EE9-86AA-49F1-BBA9-FBD5132B92F6}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

Loading…
Cancel
Save