<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Logger in ms</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ecb13b942e/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ecb13b942e/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/ecb13b942e/</id><updated>2024-03-16T20:45:53.060000Z</updated><subtitle>Recent posts to Logger in ms</subtitle><entry><title>Logger in ms</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/ecb13b942e/?limit=25#a48e" rel="alternate"/><published>2024-03-16T20:45:53.060000Z</published><updated>2024-03-16T20:45:53.060000Z</updated><author><name>francescoc</name><uri>https://forge.codesys.com/u/francescoc/</uri></author><id>https://forge.codesys.com89743a1147c6c4cfcc427ec63f0256fb7921c4e1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, I cannot find any documentation regarding the codesys configuration file.&lt;br/&gt;
I modified this part to have log files saved to disk:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="k"&gt;[CmpLog]&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.Name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;LOGS/PlcLog&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.Filter&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0xFFFFFFFF&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.Enable&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;1&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.MaxEntries&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;20000&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.MaxFileSize&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;5000&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.MaxFiles&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;10&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.Backend.0.ClassId&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0x0000010B&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="c1"&gt;;sends logger messages to SysOut&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.Backend.1.ClassId&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0x00000104&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="c1"&gt;;writes logger messages in a file&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.Backend.2.ClassId&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0x00000135&lt;/span&gt;&lt;span class="w"&gt;   &lt;/span&gt;&lt;span class="c1"&gt;;sends logger messages as UDP syslog&lt;/span&gt;
&lt;span class="na"&gt;Logger.0.Type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;0x314&lt;/span&gt;&lt;span class="c1"&gt;;Set the timestamp to RTC&lt;/span&gt;
&lt;span class="c1"&gt;;Logger.1.Name=/tmp/CommLog&lt;/span&gt;
&lt;span class="c1"&gt;;Logger.1.Enable=1&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;I need to have milliseconds in the timestamp as well.&lt;br/&gt;
What value should I use instead of 0x314?&lt;br/&gt;
Is there any documentation regarding this file?&lt;br/&gt;
Thank you &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>