Log

public class Log

Log allows to configure console and file logger or to set a custom logger.

  • Console logger writing log messages to the system console.

    Declaration

    Swift

    @available(*, deprecated, message: "Use LogSinks.console instead.")
    public let console: ConsoleLogger
  • File logger writing log messages to files.

    Declaration

    Swift

    @available(*, deprecated, message: "Use LogSinks.file instead.")
    public let file: FileLogger
  • For setting a custom logger. Changing the log level of the assigned custom logger will require the custom logger to be reassigned so that the change can be affected.

    Declaration

    Swift

    @available(*, deprecated, message: "Use LogSinks.custom instead.")
    public var custom: Logger? { get set }