Open jakubsuchybio opened 8 years ago
Hi,
You can try [Obfuscation(Exclude = false, Feature = "-rename", ApplyToMembers = false)]
, or if you're using C# 6, you can try GetLogger(nameof(Engine))
instead.
Thank you. First gives correct result with [MWClient.Engine], but I don't know what is happening there. Second gives only [Engine] But thanks to you I found the least painfull way:
private static readonly NLog.Logger Log = NLog.LogManager.GetLogger( typeof( Engine ).FullName );
Which gives correctly [MWClient.Engine] and It doesn't change obfuscation.
Hi, I am using nuget package NLog for logging stuff from my app like:
Which gives me this line of error in my output file:
but should give me this:
I can eliminite those ?????? with using this:
However that will reveal my whole Engine class which is kinda wrong and not what I want.
Is the another way, that will give my NLog Logger the proper name of class even when Obfuscated?
Thanks