VIFileLoggerConfiguration
VoximplantCore · iOS SDK v3
File logger configuration.
@objc final class VIFileLoggerConfiguration
Initializers
init()
override init()
Creates a file logger configuration object with default values.
init(logLevel:directoryURL:fileName:maxFileSize:)
@objc init(
logLevel: VILogLevel = .info,
directoryURL: URL? = nil,
fileName: String = “voximplant_sdk_logs.txt”,
maxFileSize: UInt = 2
)
Creates the file logger configuration.
Properties
directoryURL
@objc var directoryURL: URL?
Directory where the log file is stored.
The URL should point to a directory. If nil, the Application Support directory is used.
The default value is nil.
fileName
@objc var fileName: String
Log file name.
The default value is “voximplant_sdk_logs.txt”.
logLevel
@objc var logLevel: VILogLevel
Log level for messages written to the file.
The default value is VILogLevel.info.
maxFileSize
@objc var maxFileSize: UInt
Maximum log file size in megabytes.
Should be greater than zero and should not exceed 20 MB. When the file size reaches this limit, the oldest log messages are removed.
The default value is 2.
Relationships
Inherits From: NSObject
Conforms To: ObjectiveC.NSObjectProtocol, Swift.CVarArg, Swift.CustomDebugStringConvertible, Swift.CustomStringConvertible, Swift.Equatable, Swift.Hashable