LANCommander/LANCommander.Client/nlog.config
2024-07-16 00:18:41 -05:00

24 lines
No EOL
799 B
XML

<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
autoReload="true"
internalLogFile="Logs/internal.log"
internalLogLevel="Info">
<!-- enable asp.net core layout renderers -->
<extensions>
<add assembly="LANCommander.Client"/>
</extensions>
<!-- the targets to write to -->
<targets>
<!-- File Target for all log messages with basic details -->
<target xsi:type="File" name="MainLogFile" fileName="${gdc:item=StoragePath}/log.txt" />
</targets>
<!-- rules to map from logger name to target -->
<rules>
<!--All logs, including from Microsoft-->
<logger name="LANCommander.*" minlevel="${gdc:item=LoggingLevel}" writeTo="MainLogFile" />
</rules>
</nlog>