IOS-1276 back to more logical parameter order
authorDirk Zimmermann <dz@pep.security>
Tue, 18 Dec 2018 12:27:59 +0100
changeset 7414941f5bfc6db5
parent 7413 8d87302f050b
child 7415 d476e81be337
IOS-1276 back to more logical parameter order
pEpForiOS/Util/Logger.swift
     1.1 --- a/pEpForiOS/Util/Logger.swift	Tue Dec 18 12:27:59 2018 +0100
     1.2 +++ b/pEpForiOS/Util/Logger.swift	Tue Dec 18 12:27:59 2018 +0100
     1.3 @@ -52,10 +52,10 @@
     1.4      /**
     1.5       Logs to default.
     1.6       */
     1.7 -    public func log(_ message: StaticString,
     1.8 -                    function: String = #function,
     1.9 +    public func log(function: String = #function,
    1.10                      filePath: String = #file,
    1.11                      fileLine: Int = #line,
    1.12 +                    _ message: StaticString,
    1.13                      _ args: CVarArg...) {
    1.14          saveLog(message: message,
    1.15                  severity: .default,
    1.16 @@ -68,10 +68,10 @@
    1.17      /**
    1.18       Logs to info.
    1.19       */
    1.20 -    public func info(_ message: StaticString,
    1.21 -                     function: String = #function,
    1.22 +    public func info(function: String = #function,
    1.23                       filePath: String = #file,
    1.24                       fileLine: Int = #line,
    1.25 +                     _ message: StaticString,
    1.26                       _ args: CVarArg...) {
    1.27          saveLog(message: message,
    1.28                  severity: .info,
    1.29 @@ -84,10 +84,10 @@
    1.30      /**
    1.31       Logs to debug.
    1.32       */
    1.33 -    public func debug(_ message: StaticString,
    1.34 -                      function: String = #function,
    1.35 +    public func debug(function: String = #function,
    1.36                        filePath: String = #file,
    1.37                        fileLine: Int = #line,
    1.38 +                      _ message: StaticString,
    1.39                        _ args: CVarArg...) {
    1.40          saveLog(message: message,
    1.41                  severity: .debug,
    1.42 @@ -100,10 +100,10 @@
    1.43      /**
    1.44       Logs to error.
    1.45       */
    1.46 -    public func error(_ message: StaticString,
    1.47 -                      function: String = #function,
    1.48 +    public func error(function: String = #function,
    1.49                        filePath: String = #file,
    1.50                        fileLine: Int = #line,
    1.51 +                      _ message: StaticString,
    1.52                        _ args: CVarArg...) {
    1.53          saveLog(message: message,
    1.54                  severity: .error,
    1.55 @@ -116,10 +116,10 @@
    1.56      /**
    1.57       Logs to fault.
    1.58       */
    1.59 -    public func fault(_ message: StaticString,
    1.60 -                      function: String = #function,
    1.61 +    public func fault(function: String = #function,
    1.62                        filePath: String = #file,
    1.63                        fileLine: Int = #line,
    1.64 +                      _ message: StaticString,
    1.65                        _ args: CVarArg...) {
    1.66          saveLog(message: message,
    1.67                  severity: .fault,