Submodules/pEpIOSToolbox/pEpIOSToolbox/Other/Logger.swift
branchIOS-1540_GOOD
changeset 9028 fd7e84e7e135
parent 9027 919fcd1cda19
child 9029 dccf4c72edb5
equal deleted inserted replaced
9027:919fcd1cda19 9028:fd7e84e7e135
   246                          severity: Severity,
   246                          severity: Severity,
   247                          function: String = #function,
   247                          function: String = #function,
   248                          filePath: String = #file,
   248                          filePath: String = #file,
   249                          fileLine: Int = #line,
   249                          fileLine: Int = #line,
   250                          args: [CVarArg]) {
   250                          args: [CVarArg]) {
   251         osLog(message: message,
   251         osLog(message: "\(message)",
   252               severity: severity,
   252               severity: severity,
   253               function: function,
   253               function: function,
   254               filePath: filePath,
   254               filePath: filePath,
   255               fileLine: fileLine,
   255               fileLine: fileLine,
   256               args: args)
   256               args: args)
   259     /**
   259     /**
   260      - Note: Wrapping `os_log` causes all kinds of problems, so until
   260      - Note: Wrapping `os_log` causes all kinds of problems, so until
   261         there is an official version of it that accepts `[CVarArg]` (os_logv?),
   261         there is an official version of it that accepts `[CVarArg]` (os_logv?),
   262         interpolation is handled by us.
   262         interpolation is handled by us.
   263      */
   263      */
   264     private func osLog(message: StaticString,
   264     private func osLog(message: String,
   265                        severity: Severity,
   265                        severity: Severity,
   266                        function: String = #function,
   266                        function: String = #function,
   267                        filePath: String = #file,
   267                        filePath: String = #file,
   268                        fileLine: Int = #line,
   268                        fileLine: Int = #line,
   269                        args: [CVarArg]) {
   269                        args: [CVarArg]) {