Skip to content

Commit 14bcfe1

Browse files
committed
Make proxy logger public so that it can be used in Vega OOB monitor scenarios.
1 parent 668c720 commit 14bcfe1

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.40
1+
2.1.41

src/VirtualClient/VirtualClient.Core/Proxy/ProxyLogger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace VirtualClient.Proxy
1414
/// <summary>
1515
/// A logger that uploads telemetry messages/events to a proxy API endpoint.
1616
/// </summary>
17-
internal class ProxyLogger : ILogger
17+
public class ProxyLogger : ILogger
1818
{
1919
private static AssemblyName sdkAssembly = Assembly.GetAssembly(typeof(EventContext)).GetName();
2020

src/VirtualClient/VirtualClient.Core/Proxy/ProxyLoggerProvider.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33

44
namespace VirtualClient.Proxy
55
{
6+
using System.Diagnostics.CodeAnalysis;
67
using Microsoft.Extensions.Logging;
78
using VirtualClient.Common.Extensions;
89

9-
internal class ProxyLoggerProvider : ILoggerProvider
10+
/// <summary>
11+
/// An implementation of the <see cref="ILoggerProvider"/> interface for logging via
12+
/// a Proxy API endpoint.
13+
/// </summary>
14+
[SuppressMessage("Design", "CA1063:Implement IDisposable Correctly", Justification = "Nothing to dispose.")]
15+
public class ProxyLoggerProvider : ILoggerProvider
1016
{
1117
private ProxyTelemetryChannel telemetryChannel;
1218
private string source;

0 commit comments

Comments
 (0)