логи (надо не забыть скопировать в bin)
This commit is contained in:
parent
489be1deb8
commit
1fa7832bd7
15
WinFormsApp/nlog.config
Normal file
15
WinFormsApp/nlog.config
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xsi:schemaLocation="NLog NLog.xsd"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
autoReload="true"
|
||||
internalLogFile="c:\\logs\\internal.log"
|
||||
internalLogLevel="Info">
|
||||
<targets>
|
||||
<target xsi:type="File" name="logfile" fileName="c:\\logs\\winforms.log"
|
||||
layout="${longdate}|${level}|${logger}|${message}"/>
|
||||
</targets>
|
||||
|
||||
<rules>
|
||||
<logger name="*" minlevel="Info" writeTo="logfile" />
|
||||
</rules>
|
||||
</nlog>
|
Loading…
Reference in New Issue
Block a user