Skip to content

Commit

Permalink
Merge pull request #34 from LePips/main
Browse files Browse the repository at this point in the history
FileRotationLoggerDelegate Fix Spelling
  • Loading branch information
sushichop committed Jan 26, 2022
2 parents 3a28561 + 1f17426 commit 4d6b50b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/Puppy/FileRotationLogger.swift
Expand Up @@ -14,7 +14,7 @@ public class FileRotationLogger: FileLogger {
public var maxFileSize: ByteCount = 10 * 1024 * 1024
public var maxArchivedFilesCount: UInt8 = 5

public weak var delegate: FileRotationLoggerDeletate?
public weak var delegate: FileRotationLoggerDelegate?

public init(_ label: String, fileURL: URL) throws {
try super.init(label, fileURL: fileURL)
Expand Down Expand Up @@ -113,7 +113,7 @@ public class FileRotationLogger: FileLogger {
}
}

public protocol FileRotationLoggerDeletate: AnyObject {
public protocol FileRotationLoggerDelegate: AnyObject {
func fileRotationLogger(_ fileRotationLogger: FileRotationLogger, didArchiveFileURL: URL, toFileURL: URL)
func fileRotationLogger(_ fileRotationLogger: FileRotationLogger, didRemoveArchivedFileURL: URL)
}
2 changes: 1 addition & 1 deletion Tests/PuppyTests/FileRotationLoggerTests.swift
Expand Up @@ -56,7 +56,7 @@ final class FileRotationLoggerTests: XCTestCase {
}
}

extension FileRotationLoggerTests: FileRotationLoggerDeletate {
extension FileRotationLoggerTests: FileRotationLoggerDelegate {
func fileRotationLogger(_ fileRotationLogger: FileRotationLogger, didArchiveFileURL: URL, toFileURL: URL) {
print("didArchive! didArchiveFileURL: \(didArchiveFileURL), toFileURL: \(toFileURL)")
}
Expand Down

0 comments on commit 4d6b50b

Please sign in to comment.