Modify log class