public static void Main(string[] args) { LoggingHelper.Initialize(); PrintHelper.Print($"---River --- {Settings.Default.RiverName}--- ", true); StartWeatherService(); PrintHelper.Print("Press enter to close...", false); Console.ReadLine(); }
public void Execute() { try { var stortStationsList = this.GetStations(Settings.Default.RiverName); foreach (var station in stortStationsList) { PrintHelper.PrintToConsole(this.GetStationReadingsResult(station.Notation)); } } catch (Exception e) { Log.Error(e.Message); // Log the error PrintHelper.Print("Something went wrong, please check logs", false); } }