Skip to content

Commit

Permalink
Remove more unneeded reflection when creating logger instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiamurialdo committed Dec 7, 2023
1 parent e072168 commit 718aca3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions dotnet/src/dotnetframework/GxClasses/Core/GXUtilsCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions dotnet/src/dotnetframework/GxClasses/Security/WebSecurity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion dotnet/src/dotnetframework/GxMail/Exchange/Service.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 718aca3

Please sign in to comment.