Improve debug logs: show time and always write into stdout