How to collect logs when self hosted