SecureLogConfigComponents

Objective-C

@interface SecureLogConfigComponents : NSObject

Swift

class SecureLogConfigComponents : NSObject

The class contains all parameters which is required to initialise SecureLog. Set all parameters value to this object and pass to SecureLogConfig initialise function

  • @brief Optional parameter This file Id is part of the log file name. Default value: d5a1 Maximum length is 10 characters @throws NSInvalidArgumentException if the length is more than 10 characters

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nonnull fileID;

    Swift

    var fileID: String { get set }
  • @brief Mandatory parameter Is required to retrieve public key and encrypt the log message (Max Length is 1024 characters) @throws NSInvalidArgumentException if publicKeyModulus is nil or the length is more than 1024 characters

    Declaration

    Objective-C

    @property (nonatomic, strong) NSData *_Nonnull publicKeyModulus;

    Swift

    var publicKeyModulus: Data { get set }
  • @brief Mandatory parameter Is required to retrieve public key and encrypt the log message (Max Length is 8 characters) @throws NSInvalidArgumentException if publicKeyExponent is nil or the length is more than 8 characters

    Declaration

    Objective-C

    @property (nonatomic, strong) NSData *_Nonnull publicKeyExponent;

    Swift

    var publicKeyExponent: Data { get set }
  • @brief Optional parameter To set a Secure logger rolling file max count Default value: 8 @throws NSInvalidArgumentException if rollingFileMaxCount is equals to 0 or more than 99.

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger rollingFileMaxCount;

    Swift

    var rollingFileMaxCount: UInt { get set }
  • @brief Optional parameter To set a Secure logger rolling size Default value: 1024 @throws NSInvalidArgumentException if rollingSizeInKB = 0

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger rollingSizeInKB;

    Swift

    var rollingSizeInKB: UInt { get set }
  • @brief Optional parameter The directory to store the logs Default value: Library/Application Support/Thales @throws NSInvalidArgumentException if the directory is not existed

    Declaration

    Objective-C

    @property (nonatomic, strong) NSURL *_Nonnull directory;

    Swift

    var directory: URL { get set }
  • @brief Optional parameter The level of log which you want the secure log to write to the file Default value: SecureLogLevelWarn @throws NSInvalidArgumentException if the level is not from SecureLogLevel

    Declaration

    Objective-C

    @property (nonatomic) SecureLogLevel logLevel;

    Swift

    var logLevel: SecureLogLevel { get set }