Adds log method