Esempio n. 1
0
        /// <summary>
        /// Logs this configuration files settings out as the "Final Configuration" to the log
        /// </summary>
        public void LogFinalConfiguration()
        {
            CoreLogger.Log("Final Configuration", type: LogType.Information);
            CoreLogger.Log("-------------------", type: LogType.Information);
            CoreLogger.LogTabbed("Monitor", MonitorPath, 1, type: LogType.Information);
            CoreLogger.LogTabbed("Generate On Start", GenerateOnStart.ToString(), 1, type: LogType.Information);
            CoreLogger.LogTabbed("Process And Close", ProcessAndClose.ToString(), 1, type: LogType.Information);
            CoreLogger.LogTabbed("Log Level", LogLevel.ToString(), 1, type: LogType.Information);
            CoreLogger.LogTabbed("Output Path", OutputPath, 1, type: LogType.Information);
            CoreLogger.LogTabbed("Scss Output Style", ScssOutputStyle.ToString(), 1, type: LogType.Information);
            CoreLogger.LogTabbed("Scss Generate Source Map", ScssGenerateSourceMaps.ToString(), 1, type: LogType.Information);
            CoreLogger.LogTabbed("Open VS Code", OpenVsCode.ToString(), 1, type: LogType.Information);

            CoreLogger.LogTabbed("Static Folders", (StaticFolders?.Count ?? 0).ToString(), 1, type: LogType.Information);
            if (StaticFolders?.Count > 0)
            {
                StaticFolders.ForEach(directory => CoreLogger.LogTabbed($"{directory.SourceFolder} > {directory.DestinationFolder}", string.Empty, 2, LogType.Information));
            }

            CoreLogger.LogTabbed("Live Servers", (LiveServerDirectories?.Count ?? 0).ToString(), 1, type: LogType.Information);
            if (LiveServerDirectories?.Count > 0)
            {
                LiveServerDirectories.ForEach(directory => CoreLogger.LogTabbed(directory, string.Empty, 2, LogType.Information));
            }

            CoreLogger.LogTabbed("Live Data Sources", (LiveDataSources?.Count ?? 0).ToString(), 1, type: LogType.Information);
            if (LiveDataSources?.Count > 0)
            {
                LiveDataSources.ForEach(source => CoreLogger.LogTabbed(source.ConfigurationFileSource, string.Empty, 2, LogType.Information));
            }

            CoreLogger.Log("", type: LogType.Information);
        }