made a log status fetching func