summarylogtreecommitdiffstats
path: root/NLog.config
diff options
context:
space:
mode:
authorGilrain2017-10-14 15:06:59 +0200
committerGilrain2017-10-14 15:06:59 +0200
commit4d53fc5e11c0870dbb8dd17a585d79b527f5242c (patch)
tree9038205443cdbc1b904a112905f26e75ac31c6a9 /NLog.config
parentc1b347eb1610cee3b84878d4fe7fdf707e54921b (diff)
downloadaur-4d53fc5e11c0870dbb8dd17a585d79b527f5242c.tar.gz
Update to 3.0.3.0-1
Diffstat (limited to 'NLog.config')
-rw-r--r--NLog.config12
1 files changed, 12 insertions, 0 deletions
diff --git a/NLog.config b/NLog.config
new file mode 100644
index 000000000000..b6cdc5304624
--- /dev/null
+++ b/NLog.config
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <targets>
+ <target xsi:type="ColoredConsole" name="ColoredConsole" detectConsoleAvailable="false" layout="${date:format=yyyy-MM-dd HH\:mm\:ss}|${processname}-${processid}|${level:uppercase=true}|${logger}|${message}${onexception:inner= ${exception:format=toString,Data}}" />
+ <target xsi:type="File" name="File" deleteOldFileOnStartup="true" fileName="/var/log/asf.log" layout="${date:format=yyyy-MM-dd HH\:mm\:ss}|${processname}-${processid}|${level:uppercase=true}|${logger}|${message}${onexception:inner= ${exception:format=toString,Data}}" />
+ </targets>
+
+ <rules>
+ <logger name="*" minlevel="Debug" writeTo="ColoredConsole" />
+ <logger name="*" minlevel="Debug" writeTo="File" />
+ </rules>
+</nlog>