Based on the algorithmic proof of Lovász local lemma due to Moser and Tardos, Esperet and Parreau developed a framework to prove upper bounds for several chromatic numbers (in particular acyclic chromatic index, star chromatic number and Thue chromatic number) using the so-called entropy compression method. Inspired by this work, we propose a more general framework and a better analysis. This l...