Lines Matching refs:format
78 static void PrintLogPrefix(const LogContent& content, const LogFormat& format, std::ostream& out)
81 if (format.timeFormat == FormatTime::TIME) {
92 if (format.zone) {
96 if (format.year) {
103 } else if (format.timeFormat == FormatTime::MONOTONIC) {
106 } else if (format.timeFormat == FormatTime::EPOCH) {
110 out << "Invalid time format" << endl;
116 if (format.timeAccuFormat == FormatTimeAccu::MSEC) {
118 } else if (format.timeAccuFormat == FormatTimeAccu::USEC) {
120 } else if (format.timeAccuFormat == FormatTimeAccu::NSEC) {
123 out << "Invalid time accuracy format" << endl;
127 // The kmsg log printing format: 08-06 16:51:04.945 <6> [4294.967295] hungtask_base whitelist[0]-init-1
146 static void AdaptWrap(const LogContent& content, const LogFormat& format, std::ostream& out)
148 if (format.wrap) {
152 PrintLogPrefix(content, format, out);
156 void LogPrintWithFormat(const LogContent& content, const LogFormat& format, std::ostream& out)
159 if (format.colorful) {
167 PrintLogPrefix(content, format, out);
184 AdaptWrap(content, format, out);
194 if (format.colorful) {