Debugging or logging custom component

I’ve been having this issue for a while. I tried the solution detailed in another forum thread (find it here: How to retrieve logs from the action server (locally)) with no luck. But the solution proposed by @huberrom seems to work great.