Studio output to json

Hi,

Lately we decided to convert robot logs to json file using NLog to redirect logs to logstash using filebeat (this is requirement of our ogranisation). We use the deafult configuration of NLog now. Today we tried add some json target to test logging to json and now robot doesn’t log to any target :woozy_face: NLog.config looks like this:

<?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">
  <variable name="WorkflowLoggingDirectory" value="${specialfolder:folder=LocalApplicationData}/UiPath/Logs" />
  <rules>
    <logger name="WorkflowLogging" writeTo="WorkflowLogFiles" final="true" />
    <logger name="ToJson" writeTo="jsonFile" />
    <logger minLevel="Info" writeTo="EventLog" />
  </rules>
  <targets>
    <target type="File" name="WorkflowLogFiles" 
            fileName="${WorkflowLoggingDirectory}/${shortdate}_Execution.log" 
            layout="${time} ${level} ${message}" 
            keepFileOpen="true" 
            openFileCacheTimeout="5" 
            concurrentWrites="true" 
            encoding="utf-8" 
            writeBom="true" />
    <target type="EventLog" name="EventLog" 
            layout="${processname} ${assembly-version} ${newline}${message}" 
            source="UiPath" log="Application" />
    <target type="File" name="jsonFile"
            fileName="${WorkflowLoggingDirectory}/log.json"
            layout="${longdate} ${level:upperCase=true} ${message}"
            keepFileOpen="true"
            concurrentWrites="true"
  </targets>
</nlog>

Any idea what cause the problem?