linwiz / Raspberry-Pi-Web-GPIO

PHP script to control Raspberry PI GPIO pins from the web
GNU General Public License v3.0
4 stars 1 forks source link

Logging #6

Closed Paku- closed 9 years ago

Paku- commented 9 years ago

MySQL log table would be a nice enhancement. (PIN state change per row)

linwiz commented 9 years ago

Logging is enabled in the system logs located at /var/log/GPIOServer.log. I didn't see the need to log into mysql since it is the bash script that does all of the dirty work.. I just used the system logs.

Paku- commented 9 years ago

But the user does not have access there ... only the web page.

There is no way now to connect and see what happened in the system /on the PINs/ last days...

linwiz commented 9 years ago

You're right, there isn't a way to check the log from the browser, but you can check it from the Pi itself, or via SSH. I'll have to think if there is a good way to have the log accessible via web.

Paku- commented 9 years ago

Think like the user not the admin :)

Edit:

http://stackoverflow.com/questions/17997558/bash-script-to-insert-values-in-mysql

linwiz commented 9 years ago

This is now partially fixed in 3f934ccafee0daec74609a46c77460fd76a60cfc. The log is not yet displayed to the user at this time.

linwiz commented 9 years ago

Fixed in 4b1451bfdac525da6cf35ec75569186fb7da9846