Skip to content

Commit

Permalink
logging/debugging refacoring
Browse files Browse the repository at this point in the history
  • Loading branch information
dovholuknf committed Oct 1, 2023
1 parent 0ab395d commit 5682154
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 56 deletions.
5 changes: 4 additions & 1 deletion OpenZiti.NET.Tests/DataTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,24 @@
using NLog.Targets;
using NLog;
using System.Threading;
using OpenZiti.Debugging;

namespace OpenZiti.NET.Tests {
[TestClass]
public class DataTests {

[ClassInitialize]
#pragma warning disable IDE0060 // Remove unused parameter
public static void ClassInitialize(TestContext context) {
// Code to run once before all test methods in the class
Logging.SimpleConsoleLogging(MLog.LogLevel.Trace);
LoggingHelper.SimpleConsoleLogging(MLog.LogLevel.Trace);

OpenZiti.API.NativeLogger = OpenZiti.API.DefaultNativeLogFunction;
OpenZiti.API.InitializeZiti();
//to see the logs from the Native SDK, set the log level
OpenZiti.API.SetLogLevel(ZitiLogLevel.TRACE);
}
#pragma warning restore IDE0060 // Remove unused parameter

public static Logger SimpleConsoleLogging(MLog.LogLevel lvl) {
NLog.LogLevel logLevel = NLog.LogLevel.Fatal;
Expand Down
55 changes: 0 additions & 55 deletions OpenZiti.NET.Tests/Logging.cs

This file was deleted.

1 change: 1 addition & 0 deletions OpenZiti.NET/OpenZiti.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
<PackageReference Include="NLog" Version="5.0.4" />
<PackageReference Include="OpenZiti.NET.native" Version="0.34.4.153" />
<PackageReference Include="System.Memory" Version="4.5.5" />
Expand Down

0 comments on commit 5682154

Please sign in to comment.