parush / elmah

Automatically exported from code.google.com/p/elmah
0 stars 0 forks source link

Allow user-specific information to be associated with the error logged #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In most of my applications the user must be logged on in order to use the
application.  I would like to modify the ELMAH such that it is possible to
configure ELMAH such that information tied to the user currently logged on
could be logged with the error so that when I am researching an error I can
contact the specific user that generated the error so as to find out how to
be able to reproduce the error.

I would appreciate any suggestions as to how to approach making this
enhancement.

Thanks,

Casey

Original issue reported on code.google.com by BCaseyHa...@gmail.com on 6 Nov 2007 at 6:30

GoogleCodeExporter commented 9 years ago
please change type to Enhancement

Thanks,

Casey

Original comment by BCaseyHa...@gmail.com on 6 Nov 2007 at 6:34

GoogleCodeExporter commented 9 years ago
> information tied to the user currently logged on
> could be logged with the error so that when I am 
> researching an error I can contact the specific 
> user that generated the error 

The currently logged-on user is already logged with the error and displayed 
under 
the User column on the error log page. Is that not sufficient to identify the 
user 
to contact?

Original comment by azizatif on 6 Nov 2007 at 6:35

GoogleCodeExporter commented 9 years ago
The application I have uses a custom logging solution.  Your comment does give 
me an
idea.  Perhaps there is a way that I can take the logon credentials from my 
custom
solution and then use that information to "log" the person on and thus the ELMAH
error logging would pick up the 'logged-on' user info

feed back welcome

Original comment by BCaseyHa...@gmail.com on 6 Nov 2007 at 7:23

GoogleCodeExporter commented 9 years ago
> I have uses a custom logging solution
> use that information to "log" the person on 

If you make your custom logging solution a standard authentication module in 
ASP.NET 
that sets the User property of HttpContext to the logged on user and then the 
rest 
will follow (also ELMAH will pick it up).

Original comment by azizatif on 6 Nov 2007 at 7:30