[wrap] compute line size for logs and cache the value