A specialized layout that renders like default Microsoft Console Logger with Microsoft AddConsole Formatter.
Platforms Supported: All
Introduced with NLog.Extensions.Logging ver. 1.7.2
<nlog> <targets> <target name="lifetimeConsole" xsi:type="Console" layout="${MicrosoftConsoleLayout}" /> </targets> <rules> <logger name="Microsoft.Hosting.Lifetime" level="Info" writeTo="lifetimeConsole" final="true" /> </rules> </nlog>
This would write:
info: Microsoft.Hosting.Lifetime[0]
Application started. Press CTRL-C to shut down.
(null)
means skip timestamp. Can be any argument accepted by DateTime.ToString(format)
.
Introduced with NLog.Extensions.Logging ver. 5.0
false
.
Introduced with NLog.Extensions.Logging ver. 5.0
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4