implemented log feature