MovingBlocks / FacadeServer

A headless facade that acts as a game host and provides web-based administration. Automation category: Terasology Facade. See https://forum.terasology.org/threads/facadeserver-headless-server-with-web-interface.1906
Apache License 2.0
4 stars 11 forks source link

Expose server logs over REST API #28

Open Inei1 opened 6 years ago

Inei1 commented 6 years ago

Being able to view the contents of the server's logs could be helpful to remotely administrate the server. To do this, it should be possible to use the PathManager's getLogPath() method to find the logs directory, then get the contents of all .log files and expose them as a resource.

It might be best to restrict viewing of the logs to server admins.