vmware-archive / dispatch

Dispatch is a framework for deploying and managing serverless style applications.
http://dispatchframework.io
Apache License 2.0
532 stars 58 forks source link

Add log output to file #703

Closed pzmrzy closed 5 years ago

pzmrzy commented 5 years ago

Fix #671 While server log output to console, it also output to a configurable file. Then we can use tail -f to see log

kars7e commented 5 years ago

This is ok to have, but I wouldn't use that to collect logs in OVA. The dispatch-server process is running as a service under systemd supervision, and because of that the logs are collected by journald. We could configure journal to log the file, and we can utilize systemd to collect logs when debugging. If we add additional logging to file, we need to manage that file (rotate it, secure it, etc.). This is something that systemd already does, so there is no need to duplicate that.

pzmrzy commented 5 years ago

need more discussion, close for now

neosab commented 5 years ago

Then we can use tail -f to see log

FYI you can do the same with journalctl -f -u dispatch-server