When I change to log my messages from print
to os_log
, it indeed provided very detail timestamp for each message. But sometimes I does not need the long timestamp information occupied screen space.
How to hide/reformat the Xcode's console or could I configure OSLog
to not show timestamp for a while? Or I should use print instead?
Here is my logger use
let logger = OSLog(subsystem: "com.my.myapp", category: "MediaObj")
os_log(.debug, log: logger, "....my...message...")