updated method for save logs to post