Adds log method

Apparently I cannot submit a PR when you have commit (it just wants to commit the inline changes), I'll try to submit a PR when I'm back at my computer...