log module added memory buffering