<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Writing to devices log</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/49a00de34f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/49a00de34f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/49a00de34f/</id><updated>2020-02-27T16:21:14.993000Z</updated><subtitle>Recent posts to Writing to devices log</subtitle><entry><title>Writing to devices log</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/49a00de34f/?limit=25#3ccc" rel="alternate"/><published>2020-02-27T16:21:14.993000Z</published><updated>2020-02-27T16:21:14.993000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com004783993fd894dd07eb1bb8caa8b1abc308e734</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; OE9SBV&lt;/p&gt;
&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;I have a little problem with your example project.&lt;br/&gt;
I tried to make a status message with:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;stdLogger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;AddLogEntry&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;CmpLog&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;LogClass&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;LOG_USER_NOTIFY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;Errors&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ERR_FAILED&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'server started'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;but I only got the message "LOGGING BUFFER OVERFLOW;LOG MESSAGE DISMISSED" in the log file.&lt;br/&gt;
Maybe anyone can help me?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Samuel&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Writing to devices log</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/49a00de34f/?limit=25#7ecd" rel="alternate"/><published>2020-02-27T16:21:14.125000Z</published><updated>2020-02-27T16:21:14.125000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.combe7417c4ebb594c68378ea0602ca3344fef5ed2f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;by Default it is a 'ring-buffer' (alive as Long the runtime runs)&lt;br/&gt;
you could activating to write the log file to the runtime Directory&lt;br/&gt;
by uncommend the following section in /etc/CODESYSControl.cfg:&lt;br/&gt;
(restart plc is needed after doning this)&lt;/p&gt;
&lt;p&gt;-&amp;gt;remove the ';' to activate:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;[CmpLog]&lt;/span&gt;&lt;br/&gt;
;Logger.0.Name=StdLogger&lt;br/&gt;
;Logger.0.Enable=1&lt;br/&gt;
;Logger.0.MaxEntries=100000&lt;br/&gt;
;Logger.0.MaxFileSize=500000&lt;br/&gt;
;Logger.0.MaxFiles=3&lt;br/&gt;
;Logger.0.Backend.0.ClassId=0x0000010B&lt;br/&gt;
;Logger.0.Backend.1.ClassId=0x00000104&lt;br/&gt;
;Logger.0.Filter=0xFFFFFFFF&lt;/p&gt;
&lt;p&gt;the you&lt;br/&gt;
BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: PlcLog.jpg" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=1732"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Writing to devices log</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/49a00de34f/?limit=25#e228" rel="alternate"/><published>2020-02-27T16:21:13.218000Z</published><updated>2020-02-27T16:21:13.218000Z</updated><author><name>brendang</name><uri>https://forge.codesys.com/u/brendang/</uri></author><id>https://forge.codesys.com1a97aa3bbe7c68d2a6f2e7984854787eb63c23dc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks Edwin&lt;/p&gt;
&lt;p&gt;I just have a couple of questions:&lt;/p&gt;
&lt;p&gt;Does this log information get stored in a file?&lt;/p&gt;
&lt;p&gt;If the RPI reboots, will this information be rewritten?&lt;/p&gt;
&lt;p&gt;What is "Offline-Logging"&lt;/p&gt;
&lt;p&gt;Much appreciated!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Writing to devices log</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/49a00de34f/?limit=25#0cd9" rel="alternate"/><published>2020-02-27T16:21:10.635000Z</published><updated>2020-02-27T16:21:10.635000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com523fd6f7c3f8f4f03e02bde5654695737feadab5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;br/&gt;
Attached an Example for writing,&lt;br/&gt;
Errors,Warnings,Debug Messages into the plc log.&lt;/p&gt;
&lt;p&gt;BR&lt;br/&gt;
Edwin&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=1730" rel="nofollow"&gt;CmpLog_Example.project &lt;span&gt;&lt;span&gt;[74.34 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Writing to devices log</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/49a00de34f/?limit=25#1cae" rel="alternate"/><published>2020-02-27T16:21:09.650000Z</published><updated>2020-02-27T16:21:09.650000Z</updated><author><name>brendang</name><uri>https://forge.codesys.com/u/brendang/</uri></author><id>https://forge.codesys.com8dc32bc343abb6adec887f999be8f6ba1f681d99</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I see there is a log for the device (RPI). Is there any way to write to the same log location or is this dedicated for the device only information.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>