@@ -30,8 +30,6 @@ public struct EditorConfiguration: Sendable {
3030 public let locale : String
3131 /// Enables the native inserter UI in the editor
3232 public let isNativeInserterEnabled : Bool
33- /// Logs emitted at or above this level will be printed to the debug console
34- public let logLevel : LogLevel
3533
3634 /// Deliberately non-public – consumers should use `EditorConfigurationBuilder` to construct a configuration
3735 init (
@@ -48,8 +46,7 @@ public struct EditorConfiguration: Sendable {
4846 namespaceExcludedPaths: [ String ] ,
4947 authHeader: String ,
5048 locale: String ,
51- isNativeInserterEnabled: Bool ,
52- logLevel: LogLevel
49+ isNativeInserterEnabled: Bool
5350 ) {
5451 self . title = title
5552 self . content = content
@@ -65,7 +62,6 @@ public struct EditorConfiguration: Sendable {
6562 self . authHeader = authHeader
6663 self . locale = locale
6764 self . isNativeInserterEnabled = isNativeInserterEnabled
68- self . logLevel = logLevel
6965 }
7066
7167 public func toBuilder( ) -> EditorConfigurationBuilder {
@@ -113,7 +109,6 @@ public struct EditorConfigurationBuilder {
113109 private var authHeader : String
114110 private var locale : String
115111 private var isNativeInserterEnabled : Bool
116- private var logLevel : LogLevel
117112
118113 public init (
119114 title: String = " " ,
@@ -129,8 +124,7 @@ public struct EditorConfigurationBuilder {
129124 namespaceExcludedPaths: [ String ] = [ ] ,
130125 authHeader: String = " " ,
131126 locale: String = " en " ,
132- isNativeInserterEnabled: Bool = false ,
133- logLevel: LogLevel = . error
127+ isNativeInserterEnabled: Bool = false
134128 ) {
135129 self . title = title
136130 self . content = content
@@ -146,7 +140,6 @@ public struct EditorConfigurationBuilder {
146140 self . authHeader = authHeader
147141 self . locale = locale
148142 self . isNativeInserterEnabled = isNativeInserterEnabled
149- self . logLevel = logLevel
150143 }
151144
152145 public func setTitle( _ title: String ) -> EditorConfigurationBuilder {
@@ -233,12 +226,6 @@ public struct EditorConfigurationBuilder {
233226 return copy
234227 }
235228
236- public func setLogLevel( _ logLevel: LogLevel ) -> EditorConfigurationBuilder {
237- var copy = self
238- copy. logLevel = logLevel
239- return copy
240- }
241-
242229 /// Simplify conditionally applying a configuration change
243230 ///
244231 /// Sample Code:
@@ -276,8 +263,7 @@ public struct EditorConfigurationBuilder {
276263 namespaceExcludedPaths: namespaceExcludedPaths,
277264 authHeader: authHeader,
278265 locale: locale,
279- isNativeInserterEnabled: isNativeInserterEnabled,
280- logLevel: logLevel
266+ isNativeInserterEnabled: isNativeInserterEnabled
281267 )
282268 }
283269}
0 commit comments