SecureLogConfigComponents
@interface 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
-
Optional parameter This file Id is part of the log file name. Default value: d5a1 Maximum length is 10 characters Throw NSInvalidArgumentException if the length is more than 10 characters
Declaration
Objective-C
@property (strong, nonatomic) NSString *_Nonnull fileID;
Swift
var fileID: String { get set }
-
Mandatory parameter Is required to retrieve public key and encrypt the log message (Max Length is 1024 characters) Throw NSInvalidArgumentException if publicKeyModulus is nil or the length is more than 1024 characters
Declaration
Objective-C
@property (strong, nonatomic) NSData *_Nonnull publicKeyModulus;
Swift
var publicKeyModulus: Data { get set }
-
Mandatory parameter Is required to retrieve public key and encrypt the log message (Max Length is 8 characters) Throw NSInvalidArgumentException if publicKeyExponent is nil or the length is more than 8 characters
Declaration
Objective-C
@property (strong, nonatomic) NSData *_Nonnull publicKeyExponent;
Swift
var publicKeyExponent: Data { get set }
-
Optional parameter To set a Secure logger rolling file max count Default value: 8 Throw NSInvalidArgumentException if rollingFileMaxCount is equals to 0 or more than 99.
Declaration
Objective-C
@property (nonatomic) NSUInteger rollingFileMaxCount;
Swift
var rollingFileMaxCount: UInt { get set }
-
Optional parameter To set a Secure logger rolling size Default value: 1024 Throw NSInvalidArgumentException if rollingSizeInKB = 0
Declaration
Objective-C
@property (nonatomic) NSUInteger rollingSizeInKB;
Swift
var rollingSizeInKB: UInt { get set }
-
Optional parameter The directory to store the logs Default value: Library/Application Support/Thales Throw NSInvalidArgumentException if the directory is not existed
Declaration
Objective-C
@property (strong, nonatomic) NSURL *_Nonnull directory;
Swift
var directory: URL { get set }
-
Optional parameter The level of log which you want the secure log to write to the file Default value: SecureLogLevelWarn Throw NSInvalidArgumentException if the level is not from SecureLogLevel
Declaration
Objective-C
@property (nonatomic) SecureLogLevel logLevel;
Swift
var logLevel: SecureLogLevel { get set }