Add log method