You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
BookingHeChuan/ServiceDeamon/nlog.config

31 lines
1.1 KiB
XML

<?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"
autoReload="true"
throwExceptions="true"
internalLogLevel="Warning"
internalLogFile="Logs/nlog-internal.log">
<!-- enable asp.net core layout renderers -->
<extensions>
</extensions>
<!-- the targets to write to -->
<targets>
<target name="fileDebug"
xsi:type="File"
fileName="${basedir}/logs/${shortdate}-debug.log"
layout="${longdate} [${uppercase:${level}}] [${callsite}] [${threadid}] | ${message}${newline}" archiveAbovesize="10240000" enableArchiveFileCompression="true" />
<target name="errorDebug"
xsi:type="File"
fileName="${basedir}/logs/${shortdate}-error.log"
layout="${longdate} [${uppercase:${level}}] [${callsite}] [${threadid}] | ${message}${newline}" archiveAbovesize="10240000" enableArchiveFileCompression="true" />
</targets>
<rules>
<logger name="*" minlevel="Debug" maxlevel="Info" writeTo="fileDebug" />
<logger name="*" minlevel="Warning" writeTo="errorDebug" />
</rules>
</nlog>