Skip to content

Commit ccfbbd5

Browse files
authored
Merge pull request #230 from Iterable/MOB-973-logging-defaults
[MOB-973] Add inits for other logging delegates
2 parents 5413028 + 8305ac8 commit ccfbbd5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

swift-sdk/Internal/IterableLogging.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public class DefaultLogDelegate: IterableLogDelegate {
3131

3232
/// Will log everything
3333
public class AllLogDelegate: IterableLogDelegate {
34+
public init() {}
35+
3436
public func log(level: LogLevel = .info, message: String) {
3537
let markedMessage = IterableLogUtil.markedMessage(level: level, message: message)
3638
print(markedMessage)
@@ -39,7 +41,9 @@ public class AllLogDelegate: IterableLogDelegate {
3941

4042
/// Will log nothing
4143
public class NoneLogDelegate: IterableLogDelegate {
42-
public func log(level: LogLevel = .info, message: String) {
44+
public init() {}
45+
46+
public func log(level _: LogLevel = .info, message _: String) {
4347
// Do nothing
4448
}
4549
}

0 commit comments

Comments
 (0)