Lines Matching refs:message
161 const LogMessage *message = in log() local
163 uint64_t timeNs = le64toh(message->timestampNanos); in log()
164 emitLogMessage(message->logLevel, timeNs / kOneMillisecondInNanoseconds, in log()
165 message->logMessage); in log()
167 strnlen(message->logMessage, logBufferSize - bufferIndex) + in log()
174 const LogMessageV2 *message, size_t maxLogMessageLen) { in parseAndEmitTokenizedLogMessageAndGetSize() argument
176 auto *encodedLog = reinterpret_cast<const EncodedLog *>(message->logMessage); in parseAndEmitTokenizedLogMessageAndGetSize()
185 emitLogMessage(getLogLevelFromMetadata(message->metadata), in parseAndEmitTokenizedLogMessageAndGetSize()
186 le32toh(message->timestampMillis), decodedString.c_str()); in parseAndEmitTokenizedLogMessageAndGetSize()
197 const LogMessageV2 *message, size_t maxLogMessageLen) { in parseAndEmitNanoappTokenizedLogMessageAndGetSize() argument
199 reinterpret_cast<const NanoappTokenizedLog *>(message->logMessage); in parseAndEmitNanoappTokenizedLogMessageAndGetSize()
216 emitLogMessage(getLogLevelFromMetadata(message->metadata), in parseAndEmitNanoappTokenizedLogMessageAndGetSize()
217 le32toh(message->timestampMillis), decodedString.c_str()); in parseAndEmitNanoappTokenizedLogMessageAndGetSize()
223 const LogMessageV2 *message, size_t maxLogMessageLen) { in parseAndEmitStringLogMessageAndGetSize() argument
225 size_t logMessageSize = strnlen(message->logMessage, maxLogMessageLen); in parseAndEmitStringLogMessageAndGetSize()
226 if (message->logMessage[logMessageSize] != '\0') { in parseAndEmitStringLogMessageAndGetSize()
230 emitLogMessage(getLogLevelFromMetadata(message->metadata), in parseAndEmitStringLogMessageAndGetSize()
231 le32toh(message->timestampMillis), message->logMessage); in parseAndEmitStringLogMessageAndGetSize()
268 const LogMessageV2 *message = nullptr; in logV2() local
271 message = reinterpret_cast<const LogMessageV2 *>(&logBuffer[bufferIndex]); in logV2()
275 switch (extractLogType(message)) { in logV2()
279 parseAndEmitStringLogMessageAndGetSize(message, maxLogMessageLen); in logV2()
283 message, maxLogMessageLen); in logV2()
287 mBtLogParser.log(message->logMessage, maxLogMessageLen); in logV2()
291 message, maxLogMessageLen); in logV2()
295 (message->metadata & kLogTypeMask) >> kLogTypeBitOffset); in logV2()