diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-04-30 18:55:16 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-04-30 18:55:16 -0400 |
commit | 482a91962ac02cf83c2647fd7e5ba8627bd0bb0b (patch) | |
tree | deb6d10f11185beba973d07e9510f790588071dc /src/StardewModdingAPI/Framework/Logging/ConsoleInterceptionManager.cs | |
parent | 22806ab900721a61b142937bc58dd33727d377f9 (diff) | |
parent | d4f172fef160d277d5161d96a26d5174e6fc14ca (diff) | |
download | SMAPI-482a91962ac02cf83c2647fd7e5ba8627bd0bb0b.tar.gz SMAPI-482a91962ac02cf83c2647fd7e5ba8627bd0bb0b.tar.bz2 SMAPI-482a91962ac02cf83c2647fd7e5ba8627bd0bb0b.zip |
Merge branch 'develop' into stable
Diffstat (limited to 'src/StardewModdingAPI/Framework/Logging/ConsoleInterceptionManager.cs')
-rw-r--r-- | src/StardewModdingAPI/Framework/Logging/ConsoleInterceptionManager.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/StardewModdingAPI/Framework/Logging/ConsoleInterceptionManager.cs b/src/StardewModdingAPI/Framework/Logging/ConsoleInterceptionManager.cs index d84671ee..b8f2c34e 100644 --- a/src/StardewModdingAPI/Framework/Logging/ConsoleInterceptionManager.cs +++ b/src/StardewModdingAPI/Framework/Logging/ConsoleInterceptionManager.cs @@ -18,8 +18,8 @@ namespace StardewModdingAPI.Framework.Logging /// <summary>Whether the current console supports color formatting.</summary> public bool SupportsColor { get; } - /// <summary>The event raised when something writes a line to the console directly.</summary> - public event Action<string> OnLineIntercepted; + /// <summary>The event raised when a message is written to the console directly.</summary> + public event Action<string> OnMessageIntercepted; /********* @@ -30,7 +30,7 @@ namespace StardewModdingAPI.Framework.Logging { // redirect output through interceptor this.Output = new InterceptingTextWriter(Console.Out); - this.Output.OnLineIntercepted += line => this.OnLineIntercepted?.Invoke(line); + this.Output.OnMessageIntercepted += line => this.OnMessageIntercepted?.Invoke(line); Console.SetOut(this.Output); // test color support |