Stay organized with collections
Save and categorize content based on your preferences.
__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
|
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
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
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[],null,["# __android_log_message Struct Reference\n\n__android_log_message\n=====================\n\nLogger 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()](/ndk/reference/group/logging#group___logging_1ga0e29961fa7bd5904bfc142d795af1fd6).\n\nSummary\n-------\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|\n| [buffer_id](#struct____android__log__message_1a6cabaf394e64b1337ee795208170281a) | `int32_t` [log_id_t](/ndk/reference/group/logging#group___logging_1gafd05c78987a8d0a4e79c2a6a89951f8b) values. |\n| [file](#struct____android__log__message_1a14e7a066ade2a03ec76e0a3f2bd47dc6) | `const char *` Optional file name, may be set to nullptr. |\n| [line](#struct____android__log__message_1a59298c0d92d3549dbe3ec5ccdf2378e3) | `uint32_t` Optional line number, ignore if file is nullptr. |\n| [message](#struct____android__log__message_1aa20161c05373e03cbf93e6b9055ca90e) | `const char *` The log message itself. |\n| [priority](#struct____android__log__message_1a0fe6a1bd4c63174038cb61da1b106d8f) | `int32_t` [android_LogPriority](/ndk/reference/group/logging#group___logging_1ga73e497bb346e9243cbb55a8e2423c712) values. |\n| [struct_size](#struct____android__log__message_1a4e9e9f6610d307f0d60ef6601174614f) | `size_t` Must be set to `sizeof(__android_log_message)` and is used for versioning. |\n| [tag](#struct____android__log__message_1a1a9911d7edd763dd68fb1c77474dac5b) | `const char *` The tag for the log message. |\n\nPublic attributes\n-----------------\n\n### buffer_id\n\nDeclared in `android/log.h` \n\n```scdoc\nint32_t __android_log_message::buffer_id\n``` \n[log_id_t](/ndk/reference/group/logging#group___logging_1gafd05c78987a8d0a4e79c2a6a89951f8b) values. \n\n### file\n\nDeclared in `android/log.h` \n\n```gdscript\nconst char * __android_log_message::file\n``` \nOptional file name, may be set to nullptr. \n\n### line\n\nDeclared in `android/log.h` \n\n```scdoc\nuint32_t __android_log_message::line\n``` \nOptional line number, ignore if file is nullptr. \n\n### message\n\nDeclared in `android/log.h` \n\n```gdscript\nconst char * __android_log_message::message\n``` \nThe log message itself. \n\n### priority\n\nDeclared in `android/log.h` \n\n```scdoc\nint32_t __android_log_message::priority\n``` \n[android_LogPriority](/ndk/reference/group/logging#group___logging_1ga73e497bb346e9243cbb55a8e2423c712) values. \n\n### struct_size\n\nDeclared in `android/log.h` \n\n```scdoc\nsize_t __android_log_message::struct_size\n``` \nMust be set to `sizeof(__android_log_message)` and is used for versioning. \n\n### tag\n\nDeclared in `android/log.h` \n\n```gdscript\nconst char * __android_log_message::tag\n``` \nThe tag for the log message."]]