You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<rules>
<!--All logs, including from Microsoft-->
<logger name="*" minlevel="Trace" writeTo="allfile" />
<!--Skip non-critical Microsoft logs and so log only own logs-->
<logger name="Microsoft.*" maxlevel="Info" final="true" /> <!-- BlackHole without writeTo -->
<logger name="*" minlevel="Trace" writeTo="ownFile-web" />
</rules>
Maybe ConsoleTarget with Microsoft-Logger should be added to NLog.config in the tutorial, so Lifetime Startup Messages will work out of the box with NLog.
The text was updated successfully, but these errors were encountered:
We have already recognized it is important to perform logging of Lifetime Startup Messages:
https://github.com/NLog/NLog.Web/wiki/Hosting-Lifetime-Startup-Messages
But the example code is this:
And the Nlog.config contains these rules:
Maybe ConsoleTarget with Microsoft-Logger should be added to NLog.config in the tutorial, so Lifetime Startup Messages will work out of the box with NLog.
The text was updated successfully, but these errors were encountered: