How to collect console logs