Display event log to HMI

I am using CODESYS V3.5 (patch 7) to program a WAGO PFC200 (750-8217). I am able to interact with the native CODESYS logging system via the CmpLog library, by initialising logging tags (Component_Manager.CMAddComponent2(‘A_Name’, 16#00000001, ADR(GVL.udi_component_id), 0)) and then adding to the log (CmpLog.LogAdd2(CmpLog.LOG_STD_LOGGER, GVL.udi_component_id, CmpLog.LogClass.LOG_ERROR, 1, 1, ‘A message’)). These log messages can be viewed via the CODESYS IDE under the Device > Log menu.

I would like to extend this functionality in two ways: 1) write logs to an SD card; and 2) display logs to a connected HMI.

Concerning (1), I guess it might be possible to edit a config file but have not found what and where. The config file /etc/codesys3.d/RtsCore.cfg suggests setting Logger.X.Backend.Y.ClassId=260, which may write to a connected SD card by default, but I am not precisely sure and have been unable to find associated documentation.

Concerning (2), I had thought that perhaps WagoAppDatalogger might help, but that appears to be exclusively for Real data, whereas the log consists of String messages. Accessing logs via the HMI seems to me like an obvious thing someone might want to do but I have been unable to work out how to do it.

Any assistance greatly appreciated,

Justin.

Maybe you would like to test WagoSysLog library. I made an example how to write to IDE/file log and also how to present logs in visualization.
WagoSysLogTest.project (324.6 KB)
WagoSysLog_DE.pdf (669.0 KB)

Many thanks for this suggestion - I am currently working on loging to a MySQL server as we require the server to store other data as well. Once I have the SQL server up and running I will come back to check WagoSysLog as suggested.