|
12 | 12 | */ |
13 | 13 | import { |
14 | 14 | AutoEnvAttributes, |
15 | | - BasicLogger, |
16 | 15 | EvaluationSeriesContext, |
17 | 16 | EvaluationSeriesData, |
18 | 17 | Hook, |
@@ -89,33 +88,3 @@ export function initialize(clientSideId: string, options?: LDOptions): LDClient |
89 | 88 | // AutoEnvAttributes are not supported yet in the browser SDK. |
90 | 89 | return new BrowserClient(clientSideId, AutoEnvAttributes.Disabled, options); |
91 | 90 | } |
92 | | - |
93 | | -/** |
94 | | - * Provides a simple {@link LDLogger} implementation. |
95 | | - * |
96 | | - * This logging implementation uses a simple format that includes only the log level |
97 | | - * and the message text. By default, output is written to `console` methods (`console.info` |
98 | | - * for normal informational messages, `console.warn` for warnings, `console.error` for |
99 | | - * errors, and `console.log` for debug output) and the default minimum level is `info` |
100 | | - * (that is, debug output is suppressed). You can filter by log level or change the output |
101 | | - * destination with [[BasicLoggerOptions]]. |
102 | | - * |
103 | | - * To use the logger created by this function, put it into [[LDOptions.logger]]. If |
104 | | - * you do not set [[LDOptions.logger]] to anything, the SDK uses a default logger |
105 | | - * that is equivalent to `ld.basicLogger({ level: 'info' })`. |
106 | | - * |
107 | | - * @param options Configuration for the logger. If no options are specified, the |
108 | | - * logger uses `{ level: 'info' }`. |
109 | | - * |
110 | | - * @example |
111 | | - * This example shows how to use `basicLogger` in your SDK options to enable console |
112 | | - * logging only at `warn` and `error` levels. |
113 | | - * ```javascript |
114 | | - * const ldOptions = { |
115 | | - * logger: ld.basicLogger({ level: 'warn' }), |
116 | | - * }; |
117 | | - * ``` |
118 | | - */ |
119 | | -export function basicLogger(options: BasicLoggerOptions): LDLogger { |
120 | | - return new BasicLogger(options); |
121 | | -} |
0 commit comments