feat(log): afegeix Log::raw() per a marcadors sense prefix

Recupera el comportament històric dels marcadors "Game start" i "Bye!"
que han de sortir pelats (no com a "App: Game start"). Log::raw(level, msg)
és una variant prima sobre SDL_LogMessage que no anteposa cap tag i cau a
SDL_LOG_CATEGORY_APPLICATION (filtrable per AEE_LOG global).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
JailDesignerandClaude Opus 4.7 committed 2026-05-08 09:54:13 +02:00
1 parent c8882a3f6e
commit 170521aba6
3 files changed
+13 -2

No files matched your search

+5
View File
@@ -130,6 +130,11 @@ namespace Log {
SDL_LogMessage(categoryFor(tag), toSDL(lvl), "%s", BODY.c_str());
}
void raw(Level lvl, std::string_view msg) {
const std::string TEXT{msg};
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, toSDL(lvl), "%s", TEXT.c_str());
}
void init() {
// No toquem cap categoria SDL nativa per defecte: així preservem el
// silenci de SDL_LOG_CATEGORY_GPU, RENDER, etc. (default = ERROR), i