13#if defined(OS_ANDROID)
14#include <android/log.h>
23const char* StripPath(
const char*
path) {
24 auto*
p = strrchr(
path,
'/');
35 const char* condition,
37 : file_(
file), line_(
line), killProcess_(killProcess) {
38 stream_ <<
"[ERROR:" << StripPath(file_) <<
"(" << line_ <<
")] ";
41 stream_ <<
"Check failed: " << condition <<
". ";
48#if defined(OS_ANDROID)
49 android_LogPriority priority = ANDROID_LOG_ERROR __android_log_write(
50 priority,
"flutter", stream_.str().c_str());
52 syslog(LOG_ALERT,
"%s", stream_.str().c_str());
54 std::cerr << stream_.str();
LogMessage(const char *file, int line, const char *condition, bool killProcess)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path