Hello Together,
could you please help me with the following script.
We expected to get a debug file for Nlog transmission by adding:
- internalLogLevel=“Debug” internalLogFile=“FOLDER\NLOG_DEBUG.log”
And we expected to get the log-data in our database after creating log messages.
Any ideas? Thank you!
<?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" internalLogLevel="Debug" internalLogFile="FOLDER\NLOG_DEBUG.log">
<variable name="WorkflowLoggingDirectory" value="${specialfolder:folder=LocalApplicationData}/UiPath/Logs"/>
<rules>
<logger name="WorkflowLogging" writeTo="database" final="true" />
</rules>
<targets>
<target name="database" xsi:type="Database">
<connectionString>
server=SERVERNAME;
Database=staging;
user id=NAME;
password=*******
</connectionString>
<commandText>
insert into nlog.uipath_robotLog (machineName) values (@machineName);
</commandText>
<parameter name="@machineName" layout="${machineName}" />
</target>
</targets>
</nlog>