Kudu.Core.Deployment.DeploymentManager.GetLogPath C# (CSharp) Method

GetLogPath() private method

This function handles getting the path for the log file. If 'log.xml' exists then use that which will use XmlLogger, this is to support existing log files else use 'log.log' which will use TextLogger. Moving forward deployment will always use text logger. The logic to get the right logger is in GetLoggerForFile()
private GetLogPath ( string id, bool ensureDirectory = true ) : string
id string deploymentId which is part of the path for the log file
ensureDirectory bool Create the directory if it doesn't exist
return string
        private string GetLogPath(string id, bool ensureDirectory = true)
        {
            var logPath = Path.Combine(GetRoot(id, ensureDirectory), XmlLogFile);
            return FileSystemHelpers.FileExists(logPath)
                ? logPath
                : Path.Combine(GetRoot(id, ensureDirectory), TextLogFile);
        }