Skip to content

Commit

Permalink
fix: Add objective-c binding for LDConfig.logger (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed Apr 2, 2024
1 parent 971a4c4 commit eae8d78
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions LaunchDarkly/LaunchDarkly/ObjectiveC/ObjcLDConfig.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation
import OSLog

/**
Use LDConfig to configure the LDClient. When initialized, a LDConfig contains the default values which can be changed as needed.
Expand Down Expand Up @@ -169,6 +170,11 @@ public final class ObjcLDConfig: NSObject {
set { config.wrapperVersion = newValue }
}

@objc public var logger: OSLog {
get { config.logger }
set { config.logger = newValue }
}

/**
Returns a Dictionary of identifying names to unique mobile keys to access secondary environments.
Expand Down

0 comments on commit eae8d78

Please sign in to comment.