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
Some checks failed
openium/resgen.swift/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -214,7 +214,12 @@ enum AnalyticsGenerator {
|
|||||||
managers.values.forEach { manager in
|
managers.values.forEach { manager in
|
||||||
|
|
||||||
if isDebugMode {
|
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(
|
manager.logScreen(
|
||||||
@@ -241,7 +246,13 @@ enum AnalyticsGenerator {
|
|||||||
managers.values.forEach { manager in
|
managers.values.forEach { manager in
|
||||||
|
|
||||||
if isDebugMode {
|
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(
|
manager.logEvent(
|
||||||
|
|||||||
Reference in New Issue
Block a user