Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Sometimes a xslt generates an error on a live site, is there a way to log those errors?
Hmm, is this like the error that outputs something like: "Error in Something.xslt" ?
This is something that's in a catch block, so the error is completely handled. The only thing I can think of right now is changing the core..
This is the code:
catch (Exception e)
HttpContext.Current.Trace.Warn("umbracoMacro", "Error loading XSLT " + xsltFile, e);
return new LiteralControl("Error reading XSLT file: \\xslt\\" + XsltFile);
Hi, yes, and Error parsing...
I do think that logging those errors would be a great feature to have, I even saw error messages of that kind here att umbraco.org :)
It's possible to connect that log trace to system diagnostics, and a log file. Someone did that? If not, I will dig in to that l8. (Should be filtered so only warnings & errors are written).
It would be very nice if a WebPageTraceListener could somehow be tied to ELMAH. It certainly is very handy to know when the XSLT files fail when you're not looking.
And yes, it should definitely be filtered, I don't need a 100 emails per page request.. ;-)
I really think that xslt-errors should be sent to the umbracoLog as well as to the trace.
Now I got that error here on our
Error parsing XSLT file: \xslt\forum-topicsYouParticipated.xslt
Elijah Glover on Elmah & Umbraco http://stackoverflow.com/questions/3809618/umbraco-cms-net-logging-errors-loading-xslt-user-controls
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted