Logic Machine Forum
Log to Vis - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Log to Vis (/showthread.php?tid=3278)

Log to Vis - sjfp - 02.04.2021

Hi, using an example of how to get log results to a vis frame. All works fine and have modified to only show actual message.
But I cant find a way to remove the start of each message line. like
* string: ID 1 Meter results
I only want in the vis frame to show ID 1 Meter results. on each line.

Any help would be appreciated

RE: Log to Vis - admin - 03.04.2021

You can remove the text part before the ":" like this:
text = text:sub(text:find(':') + 2)

Or you can use a separate log from this example: https://forum.logicmachine.net/showthread.php?tid=350&pid=1726#pid1726