That's right, in v6 there is a new setting for how the macro engine handles exceptions and I think if it's set to throw then exceptions are logged automatically (I'm not 100% sure) but you probably don't want that on your production site anyway so best to log them yourself.
Is there a way to get exception logging for macros when umbracoDebugMode=false?
umbracoDebugMode is false in web.config (and I can't change it), but enableLogging is true in umbracoSettings.config.
Unfortunately, the exceptions thrown when rendering a macro do not get logged. I am using Umbraco 4.7.2.
How can I see the exception for "Error loading MacroEngine script" errors?
Hi Michiel,
This is how I have done it in the past
The exceptions will be logged to the umbracoLog table. You can then view them directly in the db or use the FALM package.
Of course you can also display the excepiton on the page if you want to, e.g.
Hope that helps you,
Jeavon
Ok, so basically I have to write my own logging code, Umbraco does not log such exceptions at all?
That's right, in v6 there is a new setting for how the macro engine handles exceptions and I think if it's set to throw then exceptions are logged automatically (I'm not 100% sure) but you probably don't want that on your production site anyway so best to log them yourself.
is working on a reply...