-
Notifications
You must be signed in to change notification settings - Fork 0
/
log4net.config
62 lines (51 loc) · 2.32 KB
/
log4net.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
<?xml version="1.0" encoding="utf-8" ?>
<log4net>
<appender name="Log4IoTHubAppender"
type="Log4IoTHub.Log4IoTHubAppender, Log4IoTHub">
<!--mandatory id of the Azure IoT Hub device -->
<deviceId value="YOUR_DEVICE_ID" />
<!--mandatory primary key of the Azure IoT Hub device -->
<deviceKey value="YOUR_DEVICE_KEY" />
<!--optional Azure REST API version -->
<azureApiVersion value="2015-08-15-preview" />
<!--mandatory Azure IoT Hub hostname/dns -->
<iotHubName value="YOUR_IOT_HUB.azure-devices.net" />
<!--optional meta data which should be logged to the IoT Hub-->
<!--<metaDataJson value="{MetadataVersion:'1.0',Product:'dave',ProductVersion:'2016.1',Lifecycle:'prod',Licence:'full',Customer:'core',Component:'core'}" />-->
<!--
optional debug setting which should only be used during development or on testsystem.
Set logMessageToFile=true to inspect your messages (in log4IoTHub_info.log) which will be sent to the Azure IoT Hub.
-->
<!--<logMessageToFile value="true"/>-->
<!--
optional name of an logger defined further down with an depending appender e.g. logentries to log internal errors. If the value is empty or the property isn't defined
errors will only be logged to log4IoTHub_error.log
-->
<!--<errLoggerName value="Log4IoTHubErrors2LogentriesLogger"/>-->
<!-- optional proxy settings
<webProxyHost value="YOUR_PROXY_HOST_IF_REQUIRED" />
<webProxyPort value="YOUR_PROXY_PORT_IF_REQUIRED" />
-->
</appender>
<!--
<appender name="LeAppender" type="log4net.Appender.LogentriesAppender, LogentriesLog4net">
<immediateFlush value="true" />
<useSsl value="true" />
<token value="YOUR_LOGENTRIES_TOKEN" />
<layout type="log4net.Layout.PatternLayout">
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss.fff zzz};loglevel=%level%;operation=%m;" />
</layout>
<filter type="log4net.Filter.LevelRangeFilter">
<levelMin value="INFO" />
<levelMax value="FATAL" />
</filter>
</appender>
<logger name="Log4IoTHubErrors2LogentriesLogger" additivity="false">
<level value="ALL" />
<appender-ref ref="LeAppender" />
</logger>
-->
<logger name="Log4IoTHubLogger" additivity="false">
<appender-ref ref="Log4IoTHubAppender" />
</logger>
</log4net>