Skip to content

Commit 35ad39b

Browse files
author
Igor Evdokimov
committed
- nlog
1 parent f5fe9bd commit 35ad39b

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Botticelli.Framework/nlog.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<!-- the targets to write to -->
1414
<targets>
1515
<!-- File Target for all log messages with basic details -->
16-
<target xsi:type="File" name="allfile" fileName="c:\temp\nlog-AspNetCore-all-${shortdate}.log"
16+
<target xsi:type="File" name="allfile" fileName="c:\temp\botticelli-bot-all-${shortdate}.log"
1717
layout="${longdate}|${event-properties:item=EventId:whenEmpty=0}|${level:uppercase=true}|${logger}|${message} ${exception:format=tostring}" />
1818

1919
<!-- File Target for own log messages with extra web details using some ASP.NET core renderers -->
20-
<target xsi:type="File" name="ownFile-web" fileName="c:\temp\nlog-AspNetCore-own-${shortdate}.log"
20+
<target xsi:type="File" name="ownFile-web" fileName="c:\temp\botticelli-bot-netcore-${shortdate}.log"
2121
layout="${longdate}|${event-properties:item=EventId:whenEmpty=0}|${level:uppercase=true}|${logger}|${message} ${exception:format=tostring}|url: ${aspnet-request-url}|action: ${aspnet-mvc-action}" />
2222

2323
<!--Console Target for hosting lifetime messages to improve Docker / Visual Studio startup detection -->

Botticelli/Botticelli.Server.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
<PackagePath>\</PackagePath>
2828
</None>
2929
<Content Remove="nlog.config" />
30-
<None Include="nlog.config" />
30+
<None Include="nlog.config">
31+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
32+
</None>
3133
</ItemGroup>
3234

3335
<ItemGroup>

Botticelli/nlog.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<!-- the targets to write to -->
1414
<targets>
1515
<!-- File Target for all log messages with basic details -->
16-
<target xsi:type="File" name="allfile" fileName="c:\temp\nlog-AspNetCore-all-${shortdate}.log"
16+
<target xsi:type="File" name="allfile" fileName="c:\temp\botticelli-server-all-${shortdate}.log"
1717
layout="${longdate}|${event-properties:item=EventId:whenEmpty=0}|${level:uppercase=true}|${logger}|${message} ${exception:format=tostring}" />
1818

1919
<!-- File Target for own log messages with extra web details using some ASP.NET core renderers -->
20-
<target xsi:type="File" name="ownFile-web" fileName="c:\temp\nlog-AspNetCore-own-${shortdate}.log"
20+
<target xsi:type="File" name="ownFile-web" fileName="c:\temp\botticelli-server-netcore-${shortdate}.log"
2121
layout="${longdate}|${event-properties:item=EventId:whenEmpty=0}|${level:uppercase=true}|${logger}|${message} ${exception:format=tostring}|url: ${aspnet-request-url}|action: ${aspnet-mvc-action}" />
2222

2323
<!--Console Target for hosting lifetime messages to improve Docker / Visual Studio startup detection -->

0 commit comments

Comments
 (0)