|
|
|
@ -7,23 +7,27 @@
|
|
|
|
|
internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log" >
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- optional, add some variabeles
|
|
|
|
|
https://github.com/nlog/NLog/wiki/Configuration-file#variables
|
|
|
|
|
-->
|
|
|
|
|
<variable name="myvar" value="myvalue"/>
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
See https://github.com/nlog/nlog/wiki/Configuration-file
|
|
|
|
|
for information on customizing logging rules and outputs.
|
|
|
|
|
-->
|
|
|
|
|
<targets async="true">
|
|
|
|
|
|
|
|
|
|
<target name="filelog" type="File" fileName="${shortdate}.log"
|
|
|
|
|
<target name="filelog" xsi:type="File" fileName="logs/${shortdate}.log"
|
|
|
|
|
layout="${date} ${logger} ${level}: ${message}" />
|
|
|
|
|
|
|
|
|
|
</targets>
|
|
|
|
|
|
|
|
|
|
<!--<target name="Database" xsi:type="Database"
|
|
|
|
|
dbProvider="Mono.Data.Sqlite,Mono.Data.Sqlite" keepConnection="false"
|
|
|
|
|
connectionString="Data Source=PlexRequests.sqlite"
|
|
|
|
|
commandText="INSERT into Log(Date, Level, Logger, Callsite, Message)
|
|
|
|
|
values(@Date, @Loglevel, @Logger, @Callsite, @Message)">
|
|
|
|
|
<parameter name="@Date" layout="${longdate}"/>
|
|
|
|
|
<parameter name="@Loglevel" layout="${level:uppercase=true}"/>
|
|
|
|
|
<parameter name="@Logger" layout="${logger}"/>
|
|
|
|
|
<parameter name="@Callsite" layout="${callsite:filename=true}"/>
|
|
|
|
|
<parameter name="@Message" layout="${message}"/>
|
|
|
|
|
</target>-->
|
|
|
|
|
|
|
|
|
|
</targets>
|
|
|
|
|
<rules>
|
|
|
|
|
<logger name="*" minlevel="Trace" writeTo="filelog" />
|
|
|
|
|
<!--<logger name="*" minlevel="Trace" writeTo="Database" />-->
|
|
|
|
|
</rules>
|
|
|
|
|
</nlog>
|