Studio output panel log export to different format

Hi,

@Pablito @loginerror

I am eagerly looking for the feature to export output panel log to different formats. Currently we have an option to export only to text file where we are missing text format (in case of error - red) to identify the different level log information by just looking at it.

It is nice to have an option to export to html or some other format where the text format is preserved.

Regards,
Karthik Byggari

You might be able to use the local NLog.config to introduce new loggers and targets. I imagine it would also be able to add additional NLog targets / layouts / renderers

https://nlog-project.org/config/?tab=targets

We use an alternate configuration for NLog on Orchestrator for the Robot logs, so I imagine you could modify the Studio / UiRobot NLog configuration too.

1 Like

Thank you for the reply @codemonkee

Any documentation or steps would be helpful for - “so I imagine you could modify the Studio/UiRobot NLog configuration too.”

Regards,
Karthik Byggari

If you follow the link, the NLog documentation is great and filled with examples. It is really going to depend on the Target, Layout, Renderers that you choose to use. Not sure if there is a HTML specific one, but there is most likely an XML Layout.

This is the default NLog.config configuration installed with Studio.

<?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 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" />
  </targets>
</nlog>
1 Like

Thank you @codemonkee
I will try this out.

Had another idea… Could be overkill, but might be useful. Splunk provides a Free license which allows for a 500MB/Day indexing. With this you could ingest the logs as is and customize the dashboard to suite your needs.

If you’ve never used it before, it is pretty good with parsing standard log formats with minimal effort.

1 Like

I just had a look on splunk. Great tool with a lot of insights. Thank you.

Hi,
Thank you for your suggestion. I added it to our internal ideas tracker for our team to consider.

1 Like