Show logger in a perspective view

Hi!
There is a way to show the ignition logs in a perspective view?
To allow my clients to view some logs directly in the perspective without having to open the gateway page?

Thanks

thanks

1 Like

Hey,
did you find a solution for that?

Hi,

No. I am saving the logs in a database table and showing in a perspective table.

You can do by sqllite driver

Not safe. SQLite is single-process and single-threaded. Using it to open the logging system's SQLite file at the same time will likely corrupt it, or will block logging from happening. Don't do it.

You can also show the wrapper log within a text area component. It's far less convenient to read it and there's no filtering available, but it works

Can u mentioned the steps how to do it.

Hi,
Can you mentioned the steps how to save logs in database.

Thanks for the answers :slight_smile:

I created a table in a database. Like this:
image

So I created a gateway event message handler:

Anywhere in the project a I can send a message to create a log:

system.util.sendMessage('PROJECT', 'Error_Handler', {'estacao': 'A400-63B', 'msg': 'QRCode ' + qrcode + ' ja cadastrado e OK'})

Thus, in a perspective table, the contents of the table are shown

Hi,
Do you mean that Wrapper.log can be view in Perspective?
If yes can you provide more details

Wrapper.log* yes it can.
Reference this post below to get the ignition log directory dynamically, then you can read the log file in using system.file.readAsString (from memory)