Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLC logs #22

Open
ReetChauhan opened this issue Jun 6, 2024 · 1 comment
Open

PLC logs #22

ReetChauhan opened this issue Jun 6, 2024 · 1 comment

Comments

@ReetChauhan
Copy link

ReetChauhan commented Jun 6, 2024

Where can I find all the logs

@aliteke
Copy link

aliteke commented Jun 19, 2024

Hello ReetChauhan, GRFICSv2 is using OpenPLC for the PLC virtual machine. Once you start the OpenPLC (sudo nodejs server.js), you can see the logs generated on the fly from http://localhost:8080/viewLogs.

However, they are not written to a log file. OpenPLC authors designed it that way since a real PLC would not write logs either (thiagoralves/OpenPLC_v3#123).

That being said, you can modify the GRFICSv2/plc_vm/OpenPLC_v2_master/server.js to write to a file. All the log output you see at http://localhost:8080/viewLogs are hold in a variable var plcLog (https://github.com/Fortiphyd/GRFICSv2/blob/master/plc_vm/OpenPLC_v2-master/server.js#L6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants