import { WebSiteManagementModels } from '@azure/arm-appservice' ; import { ParsedSite } from 'vscode-azureappservice' ; import { IActionContext } from 'vscode-azureextensionui' ; export async function enableFileLogging ( context , site , logsConfig ? ) { const client = await site . createClient ( context ) ; logsConfig = logsConfig || await client . getLogsConfig ( ) ; logsConfig . applicationLogs = logsConfig . applicationLogs || { } ; logsConfig . applicationLogs . fileSystem = logsConfig . applicationLogs . fileSystem || { } ; logsConfig . applicationLogs . fileSystem . level = 'Information' ; logsConfig . applicationLogs . azureBlobStorage = undefined ; logsConfig . applicationLogs . azureTableStorage = undefined ; await client . updateLogsConfig ( logsConfig ) ; }