I'm making a local server for a database in RPI. I just followed typical tutorials out there to install Apache, MySQL, PHP. Now, I want to make the server to output logs to a tft lcd i have. Basically, whenever something happens (someone accesses the rpi through browser, etc) it will output logs to the lcd.
So far, i made the lcd work and a terminal is shown on the lcd. I'm stuck now how to make the server log to the lcd.
How would i make the server log events to the terminal or to a text file?