diff --git a/dotnet/src/dotnetcore/GxClasses/Services/OpenTelemetry/OpenTelemetryService.cs b/dotnet/src/dotnetcore/GxClasses/Services/OpenTelemetry/OpenTelemetryService.cs index 3c8cacf39..3741c9a79 100644 --- a/dotnet/src/dotnetcore/GxClasses/Services/OpenTelemetry/OpenTelemetryService.cs +++ b/dotnet/src/dotnetcore/GxClasses/Services/OpenTelemetry/OpenTelemetryService.cs @@ -10,7 +10,7 @@ public interface IOpenTelemetryProvider public static class OpenTelemetryService { - private static readonly IGXLogger log = GXLoggerFactory.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName); + private static readonly IGXLogger log = GXLoggerFactory.GetLogger(typeof(OpenTelemetryService).FullName); private static string OPENTELEMETRY_SERVICE = "Observability"; public static string GX_ACTIVITY_SOURCE_NAME = "GeneXus.Tracing"; diff --git a/dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs b/dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs index 94e679faa..5b4ccb661 100644 --- a/dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs +++ b/dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs @@ -5597,7 +5597,7 @@ public string IniReadValue(string Section, string Key) #endif public static class GXDbFile { - static readonly IGXLogger log = GXLoggerFactory.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName); + static readonly IGXLogger log = GXLoggerFactory.GetLogger(typeof(GXDbFile).FullName); private static Regex schemeRegex = new Regex("^" + Scheme + ":", RegexOptions.Compiled); @@ -5818,7 +5818,7 @@ public static string PathToUrl(string path, bool absUrl, IGxContext context = nu public static class GxImageUtil { - static readonly IGXLogger log = GXLoggerFactory.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName); + static readonly IGXLogger log = GXLoggerFactory.GetLogger(typeof(GxImageUtil).FullName); private static Bitmap BitmapCreateFromStream(string filePathOrUrl) { Uri uri; diff --git a/dotnet/src/dotnetframework/GxClasses/Security/WebSecurity.cs b/dotnet/src/dotnetframework/GxClasses/Security/WebSecurity.cs index bb8c6a579..79c37b6de 100644 --- a/dotnet/src/dotnetframework/GxClasses/Security/WebSecurity.cs +++ b/dotnet/src/dotnetframework/GxClasses/Security/WebSecurity.cs @@ -16,7 +16,7 @@ namespace GeneXus.Web.Security [SecuritySafeCritical] public static class WebSecurityHelper { - static readonly IGXLogger _log = GXLoggerFactory.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName); + static readonly IGXLogger _log = GXLoggerFactory.GetLogger(typeof(WebSecurityHelper).FullName); const int SecretKeyMinimumLength = 16; @@ -112,7 +112,7 @@ internal static bool VerifySecureSignedSDTToken(string cmpCtx, GxUserType value, public static class SecureTokenHelper { - static readonly IGXLogger _log = GXLoggerFactory.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName); + static readonly IGXLogger _log = GXLoggerFactory.GetLogger(typeof(SecureTokenHelper).FullName); public enum SecurityMode { diff --git a/dotnet/src/dotnetframework/GxMail/Exchange/Service.cs b/dotnet/src/dotnetframework/GxMail/Exchange/Service.cs index 1208ba985..a63a18601 100644 --- a/dotnet/src/dotnetframework/GxMail/Exchange/Service.cs +++ b/dotnet/src/dotnetframework/GxMail/Exchange/Service.cs @@ -8,7 +8,7 @@ namespace GeneXus.Mail.Exchange public static class Service { - private static readonly IGXLogger log = GXLoggerFactory.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.FullName); + private static readonly IGXLogger log = GXLoggerFactory.GetLogger(typeof(Service).FullName); static Service() { CertificateCallback.Initialize();