diff --git a/CryptoExchange.Net/Clients/BaseRestClient.cs b/CryptoExchange.Net/Clients/BaseRestClient.cs index 7853c44..797dace 100644 --- a/CryptoExchange.Net/Clients/BaseRestClient.cs +++ b/CryptoExchange.Net/Clients/BaseRestClient.cs @@ -22,7 +22,7 @@ namespace CryptoExchange.Net.Clients { _logger = loggerFactory?.CreateLogger(name + ".RestClient") ?? NullLoggerFactory.Instance.CreateLogger(name); - LibraryHelpers.StaticLogger = loggerFactory?.CreateLogger(name); + LibraryHelpers.StaticLogger = loggerFactory?.CreateLogger("CryptoExchange"); } } } diff --git a/CryptoExchange.Net/Clients/BaseSocketClient.cs b/CryptoExchange.Net/Clients/BaseSocketClient.cs index 27dbfbf..3f36513 100644 --- a/CryptoExchange.Net/Clients/BaseSocketClient.cs +++ b/CryptoExchange.Net/Clients/BaseSocketClient.cs @@ -41,7 +41,7 @@ namespace CryptoExchange.Net.Clients { _logger = loggerFactory?.CreateLogger(name + ".SocketClient") ?? NullLoggerFactory.Instance.CreateLogger(name); - LibraryHelpers.StaticLogger = loggerFactory?.CreateLogger(name); + LibraryHelpers.StaticLogger = loggerFactory?.CreateLogger("CryptoExchange"); } /// diff --git a/CryptoExchange.Net/Converters/SystemTextJson/EnumConverter.cs b/CryptoExchange.Net/Converters/SystemTextJson/EnumConverter.cs index 7eb4dcc..1cea715 100644 --- a/CryptoExchange.Net/Converters/SystemTextJson/EnumConverter.cs +++ b/CryptoExchange.Net/Converters/SystemTextJson/EnumConverter.cs @@ -67,6 +67,7 @@ namespace CryptoExchange.Net.Converters.SystemTextJson : JsonConverter, INullableConverterFactory where T : struct, Enum { private static List>? _mapping = null; + private static string? objectLibrarySource = null; private NullableEnumConverter? _nullableEnumConverter = null; private static ConcurrentBag _unknownValuesWarned = new ConcurrentBag(); @@ -106,7 +107,7 @@ namespace CryptoExchange.Net.Converters.SystemTextJson if (isEmptyString && !_unknownValuesWarned.Contains(null)) { // We received an empty string and have no mapping for it, and the property isn't nullable - LibraryHelpers.StaticLogger?.LogWarning($"Received null or empty enum value, but property type is not a nullable enum. EnumType: {typeof(T).Name}. If you think {typeof(T).Name} should be nullable please open an issue on the Github repo"); + LibraryHelpers.StaticLogger?.LogWarning($"Received null or empty enum value, but property type is not a nullable enum. EnumType: {typeof(T).FullName}. If you think {typeof(T).FullName} should be nullable please open an issue on the Github repo"); } return new T(); // return default value @@ -149,7 +150,7 @@ namespace CryptoExchange.Net.Converters.SystemTextJson if (!_unknownValuesWarned.Contains(stringValue)) { _unknownValuesWarned.Add(stringValue!); - LibraryHelpers.StaticLogger?.LogWarning($"Cannot map enum value. EnumType: {enumType.Name}, Value: {stringValue}, Known values: {string.Join(", ", _mapping.Select(m => m.Value))}. If you think {stringValue} should added please open an issue on the Github repo"); + LibraryHelpers.StaticLogger?.LogWarning($"Cannot map enum value. EnumType: {enumType.FullName}, Value: {stringValue}, Known values: {string.Join(", ", _mapping.Select(m => m.Value))}. If you think {stringValue} should added please open an issue on the Github repo"); } }