| 965 | } |
| 966 | |
| 967 | inline void OutputLog(std::ostream& os, const butil::StringPiece& s) { |
| 968 | if (FLAGS_escape_log) { |
| 969 | EscapeJson(os, s); |
| 970 | } else { |
| 971 | os.write(s.data(), s.length()); |
| 972 | } |
| 973 | } |
| 974 | |
| 975 | void PrintLog(std::ostream& os, int severity, const char* file, int line, |
| 976 | const char* func, const butil::StringPiece& content) { |
no test coverage detected