__android_log_message

#include <log.h>

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

int32_t __android_log_message::buffer_id

log_id_t values.

file

const char * __android_log_message::file

Optional file name, may be set to nullptr.

line

uint32_t __android_log_message::line

Optional line number, ignore if file is nullptr.

message

const char * __android_log_message::message

The log message itself.

priority

int32_t __android_log_message::priority

struct_size

size_t __android_log_message::struct_size

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

tag

const char * __android_log_message::tag

The tag for the log message.