__android_log_message
用于通过 __android_log_write_logger_data() 将日志消息写入 liblog 并将日志消息发送到 __android_log_set_logger() 中指定的用户定义日志记录器的数据结构体。
摘要
公共属性 |
|
---|---|
buffer_id
|
int32_t
log_id_t 值。
|
file
|
const char *
可选的文件名,可以设置为 nullptr。
|
line
|
uint32_t
可选的行号,如果 file 为 nullptr 则忽略。
|
message
|
const char *
日志消息本身。
|
priority
|
int32_t
|
struct_size
|
size_t
必须设置为
sizeof(__android_log_message) ,用于版本控制。 |
tag
|
const char *
日志消息的标签。
|
公共属性
file
在android/log.h
中声明
const char * __android_log_message::file
可选的文件名,可以设置为 nullptr。
line
在android/log.h
中声明
uint32_t __android_log_message::line
可选的行号,如果 file 为 nullptr 则忽略。
message
在android/log.h
中声明
const char * __android_log_message::message
日志消息本身。
struct_size
在android/log.h
中声明
size_t __android_log_message::struct_size
必须设置为 sizeof(__android_log_message)
,用于版本控制。
tag
在android/log.h
中声明
const char * __android_log_message::tag
日志消息的标签。