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
@@ -32,6 +32,11 @@ namespace Log {
// entrega a SDL_LogMessage amb la categoria registrada per al tag.
void log(Level lvl, std::string_view tag, std::string_view msg);
// Variant sense prefix de tag — ús reservat per a marcadors literals
// (p. ex. "Game start" / "Bye!"). Cau a SDL_LOG_CATEGORY_APPLICATION,
// així AEE_LOG global encara els pot silenciar.
void raw(Level lvl, std::string_view msg);
template <typename... Args>
void trace(std::string_view tag, std::format_string<Args...> fmt, Args&&... args) {
log(Level::TRACE, tag, std::format(fmt, std::forward<Args>(args)...));