[KBA-78735] How to complete the Sipelia™ log configuration file to enable a trace in Sipelia™ 2.6 - Sipelia™ 2.6

series
Sipelia™ 2.6
revised_modified
2018-02-21

[KBA-78735] How to complete the Sipelia™ log configuration file to enable a trace in Sipelia™ 2.6

This article explains how to complete the Sipelia™ log configuration file so that you can enable a trace in Sipelia™ 2.6.

Symptoms

When you try to enable traces for Sipelia™ (either server or client), the Nlog.dll.nlog file is empty.

Workaround

Replace the content inside the existing Nlog.dll.nlog file with the following code.

For Server or file at C:\ProgramData\Genetec Sipelia\Logs\Server:
<?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">
<!-- Targets -->
<targets>
<!-- Regular log file -->
<target name="RegularLogFile" xsi:type="File" fileName="C:\ProgramData\Genetec Sipelia\Logs\Server_Log_${shortdate}.log" layout="${longdate}
[${level:uppercase=true}] ${message}" archiveFileName="C:\ProgramData\Genetec Sipelia\Logs\archive\Server_Log_Archive_${shortdate}_{#####}.log" 
archiveEvery="Day" archiveAboveSize="6291456" archiveNumbering="Sequence" />
<!-- Error log file-->
<target name="ErrorLogFile" xsi:type="File" fileName="C:\ProgramData\Genetec Sipelia\Logs\Server_Log_Errors_${shortdate}.log" layout="${longdate} 
[${level:uppercase=true}]: ${message}" archiveFileName="C:\ProgramData\Genetec Sipelia\Logs\archive\Client_Log_Archive_Errors_${shortdate}_{#####}.log" 
archiveEvery="Day" archiveAboveSize="6291456" archiveNumbering="Sequence" />
</targets>
<!-- Rules -->
<rules>
<logger name="*" levels="Info,Warn" writeTo="RegularLogFile" />
<logger name="*" levels="Error,Fatal" writeTo="ErrorLogFile" />
</rules>
</nlog>
For Client or file at C:\ProgramData\Genetec Sipelia\Logs\Client:
<?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">
<!-- Targets -->
<targets>
<!-- Regular log file -->
<target name="RegularLogFile" xsi:type="File" fileName="C:\ProgramData\Genetec Sipelia\Logs\Client_Log_${shortdate}.log" layout="${longdate} 
[${level:uppercase=true}] ${message}" archiveFileName="C:\ProgramData\Genetec Sipelia\Logs\archive\Client_Log_Archive_${shortdate}_{#####}.log" 
archiveEvery="Day" archiveAboveSize="6291456" archiveNumbering="Sequence" />
<!-- Error log file-->
<target name="ErrorLogFile" xsi:type="File" fileName="C:\ProgramData\Genetec Sipelia\Logs\Client_Log_Errors_${shortdate}.log" layout="${longdate} 
[${level:uppercase=true}]: ${message}" archiveFileName="C:\ProgramData\Genetec Sipelia\Logs\archive\Client_Log_Archive_Errors_${shortdate}_{#####}.log" 
archiveEvery="Day" archiveAboveSize="6291456" archiveNumbering="Sequence" />
</targets>
<!-- Rules -->
<rules>
<logger name="*" levels="Info,Warn" writeTo="RegularLogFile" />
<logger name="*" levels="Error,Fatal" writeTo="ErrorLogFile" />
</rules>
</nlog>