/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/Foundation/Platform/Android/Log_Android.cpp
39 строк
797 B
Sanakan8472
Cross-platform tracing system (ETW, LTTNG, Perfetto) (#1815)
15 фев 2026, 10:24
Не верифицирован
15 фев 2026, 10:24
fac0c1f
Код
Авторство
О чём код?
#include <Foundation/FoundationPCH.h> #if EZ_ENABLED(EZ_PLATFORM_ANDROID) # include <Foundation/Logging/Log.h> # include <Foundation/Logging/TraceWriter.h> # include <android/log.h> void ezLog::Print(const char* szText) { printf("%s", szText); ezLoggingEventData data; data.m_EventType = ezLogMsgType::InfoMsg; data.m_sText = szText; ezLogWriter::Tracing::LogMessageHandler(data); __android_log_print(ANDROID_LOG_ERROR, "ezEngine", "%s", szText); if (s_CustomPrintFunction) { s_CustomPrintFunction(szText); } fflush(stdout); fflush(stderr); } void ezLog::OsMessageBox(const ezFormatString& text) { ezStringBuilder tmp; ezStringBuilder display = text.GetText(tmp); display.Trim(" \n\r\t"); ezLog::Print(display); EZ_ASSERT_NOT_IMPLEMENTED; } #endif