Skip to content

Commit 7c49e70

Browse files
committed
Improved docs on EventLogger
Unfortunately, since Swift dropped named arguments on closures, Xcode provides no clues as to what they are. All you can see when opening the compiled framework on Xcode is: ```swift /// A type that represents an event logging function. public typealias EventLogger = (String, String, String, String, Int) -> Swift.Void ``` So hopefully this will make it a bit easier to use.
1 parent ae11089 commit 7c49e70

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/EventLogger.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ private func defaultEventLog(identifier: String, event: String, fileName: String
3232
}
3333

3434
/// A type that represents an event logging function.
35+
/// Signature is:
36+
/// - identifier
37+
/// - event
38+
/// - fileName
39+
/// - functionName
40+
/// - lineNumber
3541
public typealias EventLogger = (
3642
_ identifier: String,
3743
_ event: String,

0 commit comments

Comments
 (0)