IOS-1480 Use toolbox logger. IOS-1480
authorDirk Zimmermann <dz@pep.security>
Thu, 21 Feb 2019 13:42:30 +0100
branchIOS-1480
changeset 1296520887801fe6
parent 1295 a9a46e997c07
child 1297 357149ff6203
IOS-1480 Use toolbox logger.
MessageModel/MessageModel/Filter/FilterBase.swift
MessageModel/MessageModel/Interface/MessageModelObjects/Interface/AddressBook.swift
MessageModel/MessageModel/Interface/MessageModelObjects/Interface/Folder.swift
MessageModel/MessageModel/Interface/MessageModelObjects/Interface/Identity.swift
MessageModel/MessageModel/Interface/MessageModelObjects/Interface/Message.swift
MessageModel/MessageModel/Interface/MessageModelObjects/Interface/MessageFolder.swift
MessageModel/MessageModel/Interface/MessageModelObjects/Interface/MessageModel.swift
MessageModel/MessageModel/Interface/MessageModelObjects/Interface/ServerCredentials.swift
MessageModel/MessageModel/Interface/MessageModelObjects/Internal/Record/CdServer+Extensions.swift
MessageModel/MessageModel/Interface/MessageModelObjects/Internal/Record/NSManagedObjectContext+Extension.swift
MessageModel/MessageModel/Interface/MessageModelObjects/Internal/Record/Query.swift
MessageModel/MessageModel/NetworkService/Util/CdMessage+Extension.swift
MessageModel/MessageModel/NetworkService/Util/String+Extensions2.swift
MessageModel/MessageModel/Submodule/CoreData/CdMessage+Util.swift
MessageModel/MessageModel/Submodule/CoreData/NSManagedObjectExtensions/CdAccount.swift
MessageModel/MessageModel/Submodule/CoreData/NSManagedObjectExtensions/CdFolder.swift
MessageModel/MessageModel/Submodule/CoreData/NSManagedObjectExtensions/CdMessage.swift
MessageModel/MessageModel/Submodule/CoreData/NSManagedObjectExtensions/CdServer.swift
MessageModel/MessageModel/Submodule/CoreData/NSManagedObjectExtensions/CdServerCredentials.swift
MessageModel/MessageModel/Submodule/CoreData/Stack.swift
MessageModel/MessageModel/Util/KeyChain.swift
MessageModel/MessageModel/Util/PersistentSetup.swift
     1.1 --- a/MessageModel/MessageModel/Filter/FilterBase.swift	Thu Feb 21 13:42:30 2019 +0100
     1.2 +++ b/MessageModel/MessageModel/Filter/FilterBase.swift	Thu Feb 21 13:42:30 2019 +0100
     1.3 @@ -8,6 +8,8 @@
     1.4  
     1.5  import Foundation
     1.6  
     1.7 +import pEpIOSToolbox
     1.8 +
     1.9  open class FilterBase: FilterProtocol {
    1.10  
    1.11      public func type() -> FilterType {
     2.1 --- a/MessageModel/MessageModel/Interface/MessageModelObjects/Interface/AddressBook.swift	Thu Feb 21 13:42:30 2019 +0100
     2.2 +++ b/MessageModel/MessageModel/Interface/MessageModelObjects/Interface/AddressBook.swift	Thu Feb 21 13:42:30 2019 +0100
     2.3 @@ -10,6 +10,8 @@
     2.4  import UIKit
     2.5  import pEpIOSToolbox
     2.6  
     2.7 +import pEpIOSToolbox
     2.8 +
     2.9  open class AddressBook {
    2.10      public let comp = "AddressBook"
    2.11  
     3.1 --- a/MessageModel/MessageModel/Interface/MessageModelObjects/Interface/Folder.swift	Thu Feb 21 13:42:30 2019 +0100
     3.2 +++ b/MessageModel/MessageModel/Interface/MessageModelObjects/Interface/Folder.swift	Thu Feb 21 13:42:30 2019 +0100
     3.3 @@ -8,6 +8,8 @@
     3.4  
     3.5  import CoreData
     3.6  
     3.7 +import pEpIOSToolbox
     3.8 +
     3.9  open class Folder: MessageFolder {
    3.10      
    3.11      public struct ImapFlagsCriteria {
     4.1 --- a/MessageModel/MessageModel/Interface/MessageModelObjects/Interface/Identity.swift	Thu Feb 21 13:42:30 2019 +0100
     4.2 +++ b/MessageModel/MessageModel/Interface/MessageModelObjects/Interface/Identity.swift	Thu Feb 21 13:42:30 2019 +0100
     4.3 @@ -8,6 +8,8 @@
     4.4  
     4.5  import UIKit
     4.6  
     4.7 +import pEpIOSToolbox
     4.8 +
     4.9  open class Identity: ModelSaveProtocol {
    4.10      open var address: String
    4.11      open private(set) var userID: String?
     5.1 --- a/MessageModel/MessageModel/Interface/MessageModelObjects/Interface/Message.swift	Thu Feb 21 13:42:30 2019 +0100
     5.2 +++ b/MessageModel/MessageModel/Interface/MessageModelObjects/Interface/Message.swift	Thu Feb 21 13:42:30 2019 +0100
     5.3 @@ -8,6 +8,8 @@
     5.4  
     5.5  import Foundation
     5.6  
     5.7 +import pEpIOSToolbox
     5.8 +
     5.9  public class Message: MessageFolder {
    5.10  
    5.11      public struct ImapFields {
     6.1 --- a/MessageModel/MessageModel/Interface/MessageModelObjects/Interface/MessageFolder.swift	Thu Feb 21 13:42:30 2019 +0100
     6.2 +++ b/MessageModel/MessageModel/Interface/MessageModelObjects/Interface/MessageFolder.swift	Thu Feb 21 13:42:30 2019 +0100
     6.3 @@ -6,6 +6,8 @@
     6.4  //  Copyright © 2016 pEp Security S.A. All rights reserved.
     6.5  //
     6.6  
     6.7 +import pEpIOSToolbox
     6.8 +
     6.9  open class MessageFolder : ModelSaveProtocol, Hashable, Equatable {
    6.10  
    6.11      public static let defaultSerialNumber: Int64 = 23
     7.1 --- a/MessageModel/MessageModel/Interface/MessageModelObjects/Interface/MessageModel.swift	Thu Feb 21 13:42:30 2019 +0100
     7.2 +++ b/MessageModel/MessageModel/Interface/MessageModelObjects/Interface/MessageModel.swift	Thu Feb 21 13:42:30 2019 +0100
     7.3 @@ -7,6 +7,7 @@
     7.4  //
     7.5  
     7.6  import Foundation
     7.7 +
     7.8  import pEpIOSToolbox
     7.9  
    7.10  public class MessageModel {
     8.1 --- a/MessageModel/MessageModel/Interface/MessageModelObjects/Interface/ServerCredentials.swift	Thu Feb 21 13:42:30 2019 +0100
     8.2 +++ b/MessageModel/MessageModel/Interface/MessageModelObjects/Interface/ServerCredentials.swift	Thu Feb 21 13:42:30 2019 +0100
     8.3 @@ -8,6 +8,8 @@
     8.4  
     8.5  import Foundation
     8.6  
     8.7 +import pEpIOSToolbox
     8.8 +
     8.9  open class ServerCredentials: ModelSaveProtocol {
    8.10      internal(set) open var key: String?
    8.11      open var loginName: String
     9.1 --- a/MessageModel/MessageModel/Interface/MessageModelObjects/Internal/Record/CdServer+Extensions.swift	Thu Feb 21 13:42:30 2019 +0100
     9.2 +++ b/MessageModel/MessageModel/Interface/MessageModelObjects/Internal/Record/CdServer+Extensions.swift	Thu Feb 21 13:42:30 2019 +0100
     9.3 @@ -8,6 +8,8 @@
     9.4  
     9.5  import Foundation
     9.6  
     9.7 +import pEpIOSToolbox
     9.8 +
     9.9  extension CdServer {
    9.10      open var serverType: Server.ServerType {
    9.11          get {
    10.1 --- a/MessageModel/MessageModel/Interface/MessageModelObjects/Internal/Record/NSManagedObjectContext+Extension.swift	Thu Feb 21 13:42:30 2019 +0100
    10.2 +++ b/MessageModel/MessageModel/Interface/MessageModelObjects/Internal/Record/NSManagedObjectContext+Extension.swift	Thu Feb 21 13:42:30 2019 +0100
    10.3 @@ -9,6 +9,8 @@
    10.4  import Foundation
    10.5  import CoreData
    10.6  
    10.7 +import pEpIOSToolbox
    10.8 +
    10.9  public extension NSManagedObjectContext {
   10.10      /**
   10.11       Synchronously saves itself, logging/crashing any errors.
    11.1 --- a/MessageModel/MessageModel/Interface/MessageModelObjects/Internal/Record/Query.swift	Thu Feb 21 13:42:30 2019 +0100
    11.2 +++ b/MessageModel/MessageModel/Interface/MessageModelObjects/Internal/Record/Query.swift	Thu Feb 21 13:42:30 2019 +0100
    11.3 @@ -24,6 +24,8 @@
    11.4  
    11.5  import CoreData
    11.6  
    11.7 +import pEpIOSToolbox
    11.8 +
    11.9  /**
   11.10   This extension of `NSManagedObject` is all about easy querying.
   11.11  
    12.1 --- a/MessageModel/MessageModel/NetworkService/Util/CdMessage+Extension.swift	Thu Feb 21 13:42:30 2019 +0100
    12.2 +++ b/MessageModel/MessageModel/NetworkService/Util/CdMessage+Extension.swift	Thu Feb 21 13:42:30 2019 +0100
    12.3 @@ -8,6 +8,8 @@
    12.4  
    12.5  import CoreData
    12.6  
    12.7 +import pEpIOSToolbox
    12.8 +
    12.9  extension CdMessage {
   12.10  
   12.11      public func allRecipienst() -> NSOrderedSet {
    13.1 --- a/MessageModel/MessageModel/NetworkService/Util/String+Extensions2.swift	Thu Feb 21 13:42:30 2019 +0100
    13.2 +++ b/MessageModel/MessageModel/NetworkService/Util/String+Extensions2.swift	Thu Feb 21 13:42:30 2019 +0100
    13.3 @@ -8,6 +8,8 @@
    13.4  
    13.5  import UIKit
    13.6  
    13.7 +import pEpIOSToolbox
    13.8 +
    13.9  public extension String {
   13.10  
   13.11      static let bug1442 = "bug1442"
    14.1 --- a/MessageModel/MessageModel/Submodule/CoreData/CdMessage+Util.swift	Thu Feb 21 13:42:30 2019 +0100
    14.2 +++ b/MessageModel/MessageModel/Submodule/CoreData/CdMessage+Util.swift	Thu Feb 21 13:42:30 2019 +0100
    14.3 @@ -8,6 +8,8 @@
    14.4  
    14.5  import Foundation
    14.6  
    14.7 +import pEpIOSToolbox
    14.8 +
    14.9  /**
   14.10   Utility methods.
   14.11   */
    15.1 --- a/MessageModel/MessageModel/Submodule/CoreData/NSManagedObjectExtensions/CdAccount.swift	Thu Feb 21 13:42:30 2019 +0100
    15.2 +++ b/MessageModel/MessageModel/Submodule/CoreData/NSManagedObjectExtensions/CdAccount.swift	Thu Feb 21 13:42:30 2019 +0100
    15.3 @@ -9,6 +9,8 @@
    15.4  import Foundation
    15.5  import CoreData
    15.6  
    15.7 +import pEpIOSToolbox
    15.8 +
    15.9  extension CdAccount: RecordModelProtocol {
   15.10      @discardableResult public static func save<T: MessageModelProtocol>(
   15.11          _ model: T) -> RecordModelProtocol? {
    16.1 --- a/MessageModel/MessageModel/Submodule/CoreData/NSManagedObjectExtensions/CdFolder.swift	Thu Feb 21 13:42:30 2019 +0100
    16.2 +++ b/MessageModel/MessageModel/Submodule/CoreData/NSManagedObjectExtensions/CdFolder.swift	Thu Feb 21 13:42:30 2019 +0100
    16.3 @@ -7,6 +7,7 @@
    16.4  //
    16.5  
    16.6  import Foundation
    16.7 +
    16.8  import pEpIOSToolbox
    16.9  
   16.10  extension CdFolder {
    17.1 --- a/MessageModel/MessageModel/Submodule/CoreData/NSManagedObjectExtensions/CdMessage.swift	Thu Feb 21 13:42:30 2019 +0100
    17.2 +++ b/MessageModel/MessageModel/Submodule/CoreData/NSManagedObjectExtensions/CdMessage.swift	Thu Feb 21 13:42:30 2019 +0100
    17.3 @@ -9,6 +9,8 @@
    17.4  import Foundation
    17.5  import CoreData
    17.6  
    17.7 +import pEpIOSToolbox
    17.8 +
    17.9  extension CdMessage: RecordModelProtocol {
   17.10      public typealias Uid = Int32
   17.11  
    18.1 --- a/MessageModel/MessageModel/Submodule/CoreData/NSManagedObjectExtensions/CdServer.swift	Thu Feb 21 13:42:30 2019 +0100
    18.2 +++ b/MessageModel/MessageModel/Submodule/CoreData/NSManagedObjectExtensions/CdServer.swift	Thu Feb 21 13:42:30 2019 +0100
    18.3 @@ -8,6 +8,8 @@
    18.4  
    18.5  import Foundation
    18.6  
    18.7 +import pEpIOSToolbox
    18.8 +
    18.9  extension CdServer: RecordModelProtocol {
   18.10      @discardableResult public static func save<T: MessageModelProtocol>(
   18.11          _ model: T) -> RecordModelProtocol? {
    19.1 --- a/MessageModel/MessageModel/Submodule/CoreData/NSManagedObjectExtensions/CdServerCredentials.swift	Thu Feb 21 13:42:30 2019 +0100
    19.2 +++ b/MessageModel/MessageModel/Submodule/CoreData/NSManagedObjectExtensions/CdServerCredentials.swift	Thu Feb 21 13:42:30 2019 +0100
    19.3 @@ -7,6 +7,7 @@
    19.4  //
    19.5  
    19.6  import Foundation
    19.7 +
    19.8  import pEpIOSToolbox
    19.9  
   19.10  extension CdServerCredentials: RecordModelProtocol {
    20.1 --- a/MessageModel/MessageModel/Submodule/CoreData/Stack.swift	Thu Feb 21 13:42:30 2019 +0100
    20.2 +++ b/MessageModel/MessageModel/Submodule/CoreData/Stack.swift	Thu Feb 21 13:42:30 2019 +0100
    20.3 @@ -24,6 +24,8 @@
    20.4  
    20.5  import CoreData
    20.6  
    20.7 +import pEpIOSToolbox
    20.8 +
    20.9  /// This internal class is core of Record as it configures and accesses Core Data Stack.
   20.10  class Stack {
   20.11  
    21.1 --- a/MessageModel/MessageModel/Util/KeyChain.swift	Thu Feb 21 13:42:30 2019 +0100
    21.2 +++ b/MessageModel/MessageModel/Util/KeyChain.swift	Thu Feb 21 13:42:30 2019 +0100
    21.3 @@ -7,6 +7,7 @@
    21.4  //
    21.5  
    21.6  import Foundation
    21.7 +
    21.8  import pEpIOSToolbox
    21.9  
   21.10  /**
    22.1 --- a/MessageModel/MessageModel/Util/PersistentSetup.swift	Thu Feb 21 13:42:30 2019 +0100
    22.2 +++ b/MessageModel/MessageModel/Util/PersistentSetup.swift	Thu Feb 21 13:42:30 2019 +0100
    22.3 @@ -8,6 +8,8 @@
    22.4  
    22.5  import CoreData
    22.6  
    22.7 +import pEpIOSToolbox
    22.8 +
    22.9  open class PersistentSetup {
   22.10      let storeType: String
   22.11      lazy var objectModel = MessageModelData.MessageModelData()