Skip to content

Commit

Permalink
Merge pull request #1874 from matrix-org/richvdh-patch-1
Browse files Browse the repository at this point in the history
Add UTC timestamps to console logs
  • Loading branch information
stefanceriu authored Aug 12, 2024
2 parents 8c3fcc3 + e83989f commit 3fbf0d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MatrixSDK/Utils/Logs/MXLog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ private var logger: SwiftyBeaver.Type = {
let consoleDestination = ConsoleDestination()
consoleDestination.useNSLog = true
consoleDestination.asynchronously = false
consoleDestination.format = "$C$M $X$c" // Format is `Color Message Context`, see https://docs.swiftybeaver.com/article/20-custom-format
consoleDestination.format = "$DHH:mm:ss.SSS$d$Z $C$M $X$c" // Format is `Time Color Message Context`, see https://docs.swiftybeaver.com/article/20-custom-format
consoleDestination.levelColor.verbose = ""
consoleDestination.levelColor.debug = ""
consoleDestination.levelColor.info = ""
Expand Down
1 change: 1 addition & 0 deletions changelog.d/7472.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add UTC timestamps to console log lines.

0 comments on commit 3fbf0d6

Please sign in to comment.