__android_log_message

Logger data struct used for writing log messages to liblog via __android_log_write_logger_data() and sending log messages to user defined loggers specified in __android_log_set_logger().

Summary

Public attributes

buffer_id
int32_t
log_id_t values.
file
const char *
Optional file name, may be set to nullptr.
line
uint32_t
Optional line number, ignore if file is nullptr.
message
const char *
The log message itself.
priority
int32_t
struct_size
size_t
Must be set to sizeof(__android_log_message) and is used for versioning.
tag
const char *
The tag for the log message.

Public attributes

buffer_id

Declared in android/log.h
int32_t __android_log_message::buffer_id

log_id_t values.

file

Declared in android/log.h
const char * __android_log_message::file

Optional file name, may be set to nullptr.

line

Declared in android/log.h
uint32_t __android_log_message::line

Optional line number, ignore if file is nullptr.

message

Declared in android/log.h
const char * __android_log_message::message

The log message itself.

priority

Declared in android/log.h
int32_t __android_log_message::priority

struct_size

Declared in android/log.h
size_t __android_log_message::struct_size

Must be set to sizeof(__android_log_message) and is used for versioning.

tag

Declared in android/log.h
const char * __android_log_message::tag

The tag for the log message.