-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.config
More file actions
36 lines (30 loc) · 1.43 KB
/
app.config
File metadata and controls
36 lines (30 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
</configSections>
<appSettings>
<add key="port" value="27040"/>
<!-- Либо каталог -->
<!--<add key="folder" value="www"/>-->
<!-- Либо список файлов -->
<add key="file_1" value="E:/Develop/HTTPServer/www/proxies.txt"/>
<add key="file_2" value="E:/Develop/HTTPServer/www/index.html"/>
<add key="file_3" value="E:/Develop/HTTPServer/www/favicon.ico"/>
</appSettings>
<nlog throwExceptions="true" internalLogFile="NlogErr.txt"
internalLogLevel="Error" xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<variable name="logFile" value="${basedir}/logs/${shortdate}"/>
<targets async="true">
<target name="eventLog" xsi:type="File" fileName="${logFile}.txt" layout="${longdate}|${level:upperCase=true}|${logger}|${message} ${exception:format=message,stacktrace:separator=*}"/>
<target name="console" xsi:type="ColoredConsole" layout="${longdate}|${level:upperCase=true}|${message}"/>
</targets>
<rules>
<logger name="*" minlevel="Warn" writeTo="eventLog"/>
<logger name="*" minlevel="Trace" writeTo="console"/>
</rules>
</nlog>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
</startup>
</configuration>