int androidlogshouldPrintLine(AndroidLogFormat* p_format, const char* tag,…
Jump to turn (8)
- 1int androidlogshouldPrintLine(AndroidLogFormat pformat, const char tag, androidL
- 2中文
- 3android::base::uniquefd outputfd{dup(STDOUTFILENO)}; outputfd.get()
- 4android::base::uniquefd 定义在哪儿
- 5/data2/xxguo/C6D/taxiBusiness/build/jni/../../send/main.cpp:60:5: error: use of
- 6ndklibrary { name: "liblog", symbolfile: "liblog.map.txt", firstversion: "9", un
- 7指定动态库连接路径
- 8clang++: error: linker command failed with exit code 1 (use -v to see invocation
- User
int android_log_shouldPrintLine(AndroidLogFormat* p_format, const char* tag, android_LogPriority pri) { return pri >= filterPriForTag(p_format, tag); }
- Assistant
This function determines whether a log line should be printed based on the tag and priority level. It takes in an AndroidLogFormat pointer and two arguments: a tag (a string that identifies the source of the log message) and a priority level (an integer that specifies the importance of the message, ranging from the lowest priority level of VERBOSE to the highest priority level of ASSERT).
The function calls the filterPriForTag() function to get the priority level filter for the given tag. If the priority level of the log message is greater than or equal to the filter priority level, the function returns a non-zero value, indicating that the log line should be printed. Otherwise, it returns zero, indicating that the log line should be filtered out and not printed.