private static void CreateLogger() { var appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); var upadterPath = @"\AudioDownloader\Updater.txt"; Log = LoggerSerilog.Create(appDataPath + upadterPath); Log.Information("Logger created"); }
private void Initalize() { var appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData); var audioDownloaderPath = @"\AudioDownloader\AudioDownloader.txt"; Log = LoggerSerilog.Create(appDataPath + audioDownloaderPath); LogSystemInformation.Log(Log); StandardOutput = Localization.Properties.Resources.StandardOutputReady; ButtonContent = Localization.Properties.Resources.ButtonContentDownload; FolderButtonToolTip = HelpersModel.ToolTipFolder; TextBoxHelper = Localization.Properties.Resources.TextBoxYouTubeInitial; _informationAndException = new CircularQueue <string>(20); InformationAndExceptionOutput = Localization.Properties.Resources.StatusLogApplicationInitialized; Log.Information(Localization.Properties.Resources.StatusLogApplicationInitialized); }