-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.config
91 lines (86 loc) · 3.81 KB
/
App.config
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?xml version="1.0"?>
<!-- Copyright 2015-2016 Pascal COMBES <pascom@orange.fr>
This file is part of GlobalHotKeys.
GlobalHotKeys is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
GlobalHotKeys is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GlobalHotKeys. If not, see <http://www.gnu.org/licenses/>
-->
<configuration>
<configSections>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
<log4net>
<appender name="WindowsEventLog" type="log4net.Appender.EventLogAppender" >
<LogName value="Pascom" />
<ApplicationName value="GlobalHotKeys" />
<filter type="log4net.Filter.LevelRangeFilter">
<levelMin value="WARN" />
<levelMax value="FATAL" />
</filter>
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%logger: %message" />
</layout>
</appender>
<appender name="Root" type="log4net.Appender.RollingFileAppender">
<file type="log4net.Util.PatternString" value="%property{LogFilePath}\GlobalHotKeys-.log" />
<PreserveLogFileNameExtension value="true" />
<staticLogFileName value="false" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd" />
<maxSizeRollBackups value="10" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="[%5level] %date %50logger: %message%newline" />
</layout>
</appender>
<appender name="WindowManager" type="log4net.Appender.RollingFileAppender">
<file type="log4net.Util.PatternString" value="%property{LogFilePath}\WindowManager-.log" />
<PreserveLogFileNameExtension value="true" />
<staticLogFileName value="false" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd" />
<maxSizeRollBackups value="10" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="[%5level] %date %50logger: %message%newline" />
</layout>
</appender>
<appender name="PowerManager" type="log4net.Appender.RollingFileAppender">
<file type="log4net.Util.PatternString" value="%property{LogFilePath}\PowerManager-.log" />
<PreserveLogFileNameExtension value="true" />
<staticLogFileName value="false" />
<appendToFile value="true" />
<rollingStyle value="Date" />
<datePattern value="yyyyMMdd" />
<maxSizeRollBackups value="10" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="[%5level] %date %50logger: %message%newline" />
</layout>
</appender>
<logger name="GlobalHotKeys.Windows" additivity="false">
<level value="INFO" />
<appender-ref ref="WindowsEventLog" />
<appender-ref ref="WindowManager" />
</logger>
<logger name="GlobalHotKeys.Power" additivity="false">
<level value="INFO" />
<appender-ref ref="WindowsEventLog" />
<appender-ref ref="PowerManager" />
</logger>
<root>
<level value="INFO" />
<appender-ref ref="WindowsEventLog" />
<appender-ref ref="Root" />
</root>
</log4net>
</configuration>