BililiveRecorder/BililiveRecorder.WPF/Nlog.Release.config

17 lines
763 B
Plaintext
Raw Normal View History

2018-03-27 06:10:30 +08:00
<?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"
xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
autoReload="true"
throwExceptions="false"
internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log">
<targets>
<target name="WPFLogger" xsi:type="MethodCall" className="BililiveRecorder.WPF.MainWindow, BililiveRecorder.WPF" methodName="AddLog">
<parameter layout="[${date:format=HH\:mm\:ss}] ${uppercase:${level}} ${message} ${exception:format=ToString,StackTrace}" />
</target>
</targets>
<rules>
<logger name="*" minlevel="Info" writeTo="WPFLogger"/>
</rules>
</nlog>