log module optimized