LogFileConfiguration

public class LogFileConfiguration

Log file configuration.

  • The directory to store the log files.

    Declaration

    Swift

    public let directory: String
  • To use plain text file format instead of the default binary format.

    Declaration

    Swift

    public var usePlainText: Bool { get set }
  • The maximum size of a log file before being rotated in bytes. The default is 500 Kilobytes.

    Declaration

    Swift

    public var maxSize: UInt64 { get set }
  • The Max number of rotated log files to keep. The default value is 1 which means one backup for a total of 2 log files.

    Declaration

    Swift

    public var maxRotateCount: Int { get set }
  • Initializes with a directory to store the log files.

    Declaration

    Swift

    public init(directory: String)