-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use application name in XmlFileErrorLog when logging an error #403
Comments
@nbulusanjr @atifaziz I did fix a similar issue in the memory error log. Maybe this code can just be ported to the XML file logger as well. Looks like it is missing the application name completely. |
The application name setting was primarily designed to be used for isolation purposes where you'd want to share a single store like a database as the error log store across several applications. It doesn't make much sense in the case of |
Since this is by-design, I've changed the title and label to reflect that this is an enhancement. |
But if you want to share the directory where XmlFileErrorLog puts its files between multiple applications (like a SAN), application name may still make sense, right? |
@ThomasArdal It could but it cannot be efficiently implemented as I pointed out:
The only way to make this work would be to use the application name as the last component of the file path and then each application's errors would sit isolated in a separate directory. Historically, this made sense if you configured the error log machine-wide via |
A guy from OrbitOne did an application thats logs to a central database and filter it using by application name. The design log an error to a xml file and an agent will check if there is a new xml file in your log directory and throws into a webservice. |
@nbulusanjr I'm guessing you're referring to ASP.NET Exception Reporter (based on ELMAH)?
Can the agent not be configured with the application for which it is collecting? |
Hi, I want to fix this issue in Elmah. Can I get access to make PR in master and publish new nuget for the same? |
@vyasabhishek You don't need any access rights to make a PR. You prepare the work in your fork and create a PR from there to here. Also, the fix should go primarily into the |
…L File Error Log.
Thanks @atifaziz . I have created PR to main branch. I would appreciate, If you can review/merge that PR and publish a new version of Elmah. |
No description provided.
The text was updated successfully, but these errors were encountered: