When use NLog.config link to exceptionless and how to set User Identity Name in UI?
pccai opened this issue ยท 4 comments
pccai commented
pccai commented
not {aspnet-item}, HttpContext.Items["Accout"] = "aaa BBB";
niemyjski commented
You would need to make sure you set the Identity property https://github.com/exceptionless/Exceptionless.Net/blob/601692c98dd0061eeebbbb6e85930634dfaef38b/src/Platforms/Exceptionless.NLog/LogEventBuilderExtensions.cs#L60
pccai commented
tks.
It's now worked for me:
โ <target type="Exceptionless, Exceptionless.NLog" name="exceptionless" apiKey="API_KEY_HERE" userIdentity="${aspnet-user-identity}">
โ โ โ
โ โ โ
โ โ
niemyjski commented
Awesome!
