!29 adjust nlog-NLog

Merge pull request !29 from 21世纪小八路/develop
This commit is contained in:
21世纪小八路
2021-06-20 00:32:10 +08:00
committed by Gitee
6 changed files with 2 additions and 11 deletions
@@ -93,9 +93,6 @@
</ItemGroup>
<ItemGroup>
<Content Update="nlog.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Update="wwwroot\favicon.ico">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CoreCms.Net.Web.Admin
try
{
//确保NLog.config中连接字符串与appsettings.json中同步
NLogUtil.EnsureNlogConfig("nLog.config");
NLogUtil.EnsureNlogConfig("NLog.config");
//throw new Exception("测试异常");//for test
//其他项目启动时需要做的事情
NLogUtil.WriteAll(NLog.LogLevel.Trace, LogType.Web, "网站启动", "网站启动成功");
@@ -86,12 +86,6 @@
<ProjectReference Include="..\CoreCms.Net.WeChatService\CoreCms.Net.WeChatService.csproj" />
</ItemGroup>
<ItemGroup>
<Content Update="nlog.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<None Include="wwwroot\assets\bootstrap\css\bootstrap-theme.css.map" />
<None Include="wwwroot\assets\bootstrap\css\bootstrap.css.map" />
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CoreCms.Net.Web.WebApi
try
{
//确保NLog.config中连接字符串与appsettings.json中同步
NLogUtil.EnsureNlogConfig("nLog.config");
NLogUtil.EnsureNlogConfig("NLog.config");
//其他项目启动时需要做的事情
NLogUtil.WriteAll(LogLevel.Trace, LogType.Web, "接口启动", "接口启动成功");