> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# VIFileLoggerConfiguration

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](/api-reference/iossdk/core/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](https://developer.apple.com/documentation/foundation/filemanager/searchpathdirectory/applicationsupportdirectory) 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](/api-reference/iossdk/core/viloglevel)

Log level for messages written to the file.

The default value is [VILogLevel.info](/api-reference/iossdk/core/viloglevel#symbol-c0039ad98550f5e6).

### 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