From a5a32e148b44b406d131b11a0aeadebed6d496cb Mon Sep 17 00:00:00 2001 From: James Finlay Date: Fri, 4 Mar 2016 22:32:04 -0800 Subject: Pulled Logs into new Log object - Greatly simplifies Program.cs - Removed the 'Colour' method so that logging is more consistent for users - willing to discuss this change. I believe it is beneficial. - Added uses of #DEBUG --- StardewModdingAPI/Events/Game.cs | 6 +++--- StardewModdingAPI/Events/Graphics.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'StardewModdingAPI/Events') diff --git a/StardewModdingAPI/Events/Game.cs b/StardewModdingAPI/Events/Game.cs index d155ba2e..6290d2c7 100644 --- a/StardewModdingAPI/Events/Game.cs +++ b/StardewModdingAPI/Events/Game.cs @@ -26,7 +26,7 @@ namespace StardewModdingAPI.Events } catch (Exception ex) { - Program.LogError("An exception occured in XNA Initialize: " + ex.ToString()); + Log.Error("An exception occured in XNA Initialize: " + ex.ToString()); } } @@ -38,7 +38,7 @@ namespace StardewModdingAPI.Events } catch (Exception ex) { - Program.LogError("An exception occured in XNA LoadContent: " + ex.ToString()); + Log.Error("An exception occured in XNA LoadContent: " + ex.ToString()); } } @@ -50,7 +50,7 @@ namespace StardewModdingAPI.Events } catch (Exception ex) { - Program.LogError("An exception occured in XNA UpdateTick: " + ex.ToString()); + Log.Error("An exception occured in XNA UpdateTick: " + ex.ToString()); } } } diff --git a/StardewModdingAPI/Events/Graphics.cs b/StardewModdingAPI/Events/Graphics.cs index 62bffe82..60ee7a74 100644 --- a/StardewModdingAPI/Events/Graphics.cs +++ b/StardewModdingAPI/Events/Graphics.cs @@ -19,7 +19,7 @@ namespace StardewModdingAPI.Events } catch (Exception ex) { - Program.LogError("An exception occured in XNA DrawTick: " + ex.ToString()); + Log.Error("An exception occured in XNA DrawTick: " + ex.ToString()); } } -- cgit