-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnlog.config
36 lines (34 loc) · 1.9 KB
/
nlog.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
<?xml version="1.0" encoding="utf-8" ?>
<!-- XSD manual extracted from package NLog.Schema: https://www.nuget.org/packages/NLog.Schema-->
<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=".\logs\driver-internal.log"
internalLogLevel="Info" >
<!-- the targets to write to -->
<targets>
<!-- write logs to file -->
<target xsi:type="File" name="fileTarget"
layout="${date}|${level:uppercase=true}|${message} ${exception:format=tostring}|${logger}|${all-event-properties}"
fileName=".\logs\fanuc.${shortdate}.log"
maxArchiveFiles="14"
archiveAboveSize="10000000" />
<target xsi:type="Console" name="consoleTarget"
layout="${date}|${level:uppercase=true}|${message} ${exception:format=tostring}|${logger}|${all-event-properties}" />
<target name="throttle_log4j" type="AsyncWrapper" timeToSleepBetweenBatches="100" batchSize="1" overflowAction="Block">
<target name="log4j" type="Chainsaw" address="udp://127.0.0.1:4445" newline="true" />
</target>
</targets>
<!-- rules to map from logger name to target -->
<rules>
<logger name="l99.fanuc.*" minlevel="INFO" writeTo="fileTarget,consoleTarget" />
<!--<logger name="*" minlevel="DEBUG" writeTo="fileTarget,consoleTarget" />-->
<!-- to send logs to a remote computer,
uncomment below line,
change 'throttle_log4j' target IP address to computer receiving logs
install https://github.com/ihtfw/Logazmic or https://logging.apache.org/chainsaw/2.x/
and setup UDP/4445 listener on receiving computer
-->
<!--<logger name="*" minlevel="TRACE" writeTo="throttle_log4j" />-->
</rules>
</nlog>