Function tikv_util::logger::formatter::need_json_encode [−][src]
fn need_json_encode(bytes: &[u8]) -> bool
According to RFC: Unified Log Format, it returns true
when this byte stream contains
the following characters, which means this input stream needs to be JSON encoded.
Otherwise, it returns false
.
- U+0000 (NULL) ~ U+0020 (SPACE)
- U+0022 (QUOTATION MARK)
- U+003D (EQUALS SIGN)
- U+005B (LEFT SQUARE BRACKET)
- U+005D (RIGHT SQUARE BRACKET)