Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Src/StackifyLib/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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("")]

Expand Down
7 changes: 4 additions & 3 deletions Src/StackifyLib/StackifyLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<Version>2.1.2</Version>
<Version>2.1.3</Version>
<Authors>StackifyLib</Authors>
<PackageProjectUrl>https://github.com/stackify/stackify-api-dotnet</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/stackify/stackify-api-dotnet/blob/master/LICENSE</PackageLicenseUrl>
<RepositoryUrl>https://github.com/stackify/stackify-api-dotnet</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageIconUrl>https://stackify.com/wp-content/uploads/2017/02/stk.png</PackageIconUrl>
<AssemblyVersion>2.1.2.0</AssemblyVersion>
<FileVersion>2.1.2.0</FileVersion>
<AssemblyVersion>2.1.3.0</AssemblyVersion>
<FileVersion>2.1.3.0</FileVersion>
<PackageReleaseNotes>Remove default internal file logger</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
Expand Down
22 changes: 1 addition & 21 deletions Src/StackifyLib/Utils/StackifyAPILogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -125,4 +105,4 @@ private static void EvaluateLogEnabled()
}
}
}
}
}