DownloadLogging
protocol DownloadLogging : Logging
logging functionality regarding Download.
-
downloadStarted()Extension methodLogs when downloads start.
Log-level must be at least equal to medium.
Declaration
Swift
func downloadStarted() -
downloadCompleted()Extension methodLogs when downloads finish.
Log-level must be at least equal to medium.
Declaration
Swift
func downloadCompleted() -
downloadsCompleted(withFailledTasks:)Extension methodLogs when downloads complete
Log-level must be at least equal to medium.
Declaration
Swift
func downloadsCompleted(withFailledTasks failedTasks: [(url: URL, error: Error?)])Parameters
failedTasksFailed tasks.
-
downloadTaskUpdated(withProgress:)Extension methodLogs when downloaded tasks count changes.
Log-level must be at least equal to high.
Declaration
Swift
func downloadTaskUpdated(withProgress progress: DownloadTaskProgress)Parameters
progressPost-process progress.
-
downloadFileUpdated(withProgress:)Extension methodLogs when downloaded file size is about to change.
Log-level must be at least equal to high.
Declaration
Swift
func downloadFileUpdated(withProgress progress: DownloadTaskProgress)Parameters
progressPost-process progress.
-
downloadError(_:from:)Extension methodLogs when an error occurred during download.
Declaration
Swift
func downloadError(_ error: Error, from url: URL?)Parameters
errorAn error.
urlThe url from the file was about to finish download.
DownloadLogging Protocol Reference