Stats_logging: Replace len hardcoded contents by charsmax