RES-74 Ajout du multiligne sur les logs des analytics
Some checks failed
openium/resgen.swift/pipeline/head There was a failure building this commit

This commit is contained in:
2025-10-29 09:23:10 +01:00
parent 7247d20ae4
commit 1f9af76b40

View File

@@ -214,7 +214,12 @@ enum AnalyticsGenerator {
managers.values.forEach { manager in
if isDebugMode {
logger.debug("🖥 Screen: \\(name, privacy: .public) | Path: \\(path, privacy: .public) | Params: \\(String(describing: params ?? [:]), privacy: .public)")
logger.debug(\"""
🖥️ Screen:
Name: \\(name, privacy: .public)
Path: \\(path, privacy: .public)
Params: \\(String(describing: params ?? [:]), privacy: .public)
\""")
}
manager.logScreen(
@@ -241,7 +246,13 @@ enum AnalyticsGenerator {
managers.values.forEach { manager in
if isDebugMode {
logger.debug("📊 Event: \\(name, privacy: .public) | Action: \\(action.isEmpty ? "-" : action, privacy: .public) | Category: \\(category.isEmpty ? "-" : category, privacy: .public) | Params: \\(String(describing: params ?? [:]), privacy: .public)")
logger.debug(\"""
📊 Event:
Name: \\(name, privacy: .public)
Action: \\(action.isEmpty ? "-" : action, privacy: .public)
Category: \\(category.isEmpty ? "-" : category, privacy: .public)
Params: \\(String(describing: params ?? [:]), privacy: .public)
\""")
}
manager.logEvent(