Replace stdout logs with proper logs