Browser console

Hi guys!
How can I take, and save at variable, logs from browser console?