Adds log method

this is fine.