( dap: Dap.Api, config: boolean | Partial<ILoggingConfiguration>, )
| 153 | * Creates logger setup options from the given configuration. |
| 154 | */ |
| 155 | export function resolveLoggerOptions( |
| 156 | dap: Dap.Api, |
| 157 | config: boolean | Partial<ILoggingConfiguration>, |
| 158 | ): ILoggerSetupOptions { |
| 159 | const fulfilled = fulfillLoggerOptions(config); |
| 160 | const options = { |
| 161 | sinks: [] as ILogSink[], |
| 162 | }; |
| 163 | |
| 164 | if (fulfilled.logFile) { |
| 165 | options.sinks.push(new FileLogSink(fulfilled.logFile, dap)); |
| 166 | } |
| 167 | |
| 168 | return options; |
| 169 | } |
no test coverage detected