Format output of console API messages