diff --git a/Src/StackifyLib/Properties/AssemblyInfo.cs b/Src/StackifyLib/Properties/AssemblyInfo.cs index 8e4c09f..55c5ef5 100644 --- a/Src/StackifyLib/Properties/AssemblyInfo.cs +++ b/Src/StackifyLib/Properties/AssemblyInfo.cs @@ -10,7 +10,7 @@ [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Stackify")] [assembly: AssemblyProduct("Stackify API for .NET")] -[assembly: AssemblyCopyright("Copyright © 2015")] +[assembly: AssemblyCopyright("Copyright © 2018")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/Src/StackifyLib/StackifyLib.csproj b/Src/StackifyLib/StackifyLib.csproj index 7533c98..ea2cd47 100644 --- a/Src/StackifyLib/StackifyLib.csproj +++ b/Src/StackifyLib/StackifyLib.csproj @@ -13,15 +13,16 @@ false false false - 2.1.2 + 2.1.3 StackifyLib https://github.com/stackify/stackify-api-dotnet https://github.com/stackify/stackify-api-dotnet/blob/master/LICENSE https://github.com/stackify/stackify-api-dotnet git https://stackify.com/wp-content/uploads/2017/02/stk.png - 2.1.2.0 - 2.1.2.0 + 2.1.3.0 + 2.1.3.0 + Remove default internal file logger diff --git a/Src/StackifyLib/Utils/StackifyAPILogger.cs b/Src/StackifyLib/Utils/StackifyAPILogger.cs index 79eec64..ac3a9bf 100644 --- a/Src/StackifyLib/Utils/StackifyAPILogger.cs +++ b/Src/StackifyLib/Utils/StackifyAPILogger.cs @@ -11,14 +11,6 @@ namespace StackifyLib.Utils { public class StackifyAPILogger { -#if NETFULL - private static readonly string DefaultLoggerPathAndFile = Path.Combine(Environment.CurrentDirectory, "stackify.debug.log"); -#else - private static readonly string DefaultLoggerPathAndFile = Path.Combine(System.AppContext.BaseDirectory, "stackify.debug.log"); -#endif - private static readonly object LoggerDefaultLock = new object(); - private static StreamWriter _loggerDefault; - private static StringWriter _logger; private static bool? _logEnabled; @@ -68,18 +60,6 @@ public static void Log(string message, bool logAnyways = false) { _logger.Write(msg); } - else - { - lock (LoggerDefaultLock) - { - if (_loggerDefault == null) - { - _loggerDefault = new StreamWriter(new FileStream(DefaultLoggerPathAndFile, FileMode.Append, FileAccess.Write, FileShare.Read)); - } - } - - _loggerDefault.WriteLine(msg); - } } } catch (Exception ex) @@ -125,4 +105,4 @@ private static void EvaluateLogEnabled() } } } -} +} \ No newline at end of file