The derived moduli stack of logarithmic flat connections