I'm on v7.5.2 and had an error in UmbracoTraceLog.Umbraco.txt which I found hard to track down.
The error came from a partial view macro for writing breadcrumbs. It was caused by looking for content for a page that was subsequently deleted. (Yes, the page Id was hard-coded into the macro!)
Even though the error said "Not Found", the log didn't tell me it was from my breadcrumbs macro, so it took a bit of work to track it down.
Is there any way I can find out where errors originate, e.g. a setting in the log4net.config file or something I could add to my macros?
Log4Net - locating the error
Hi everyone,
I'm on v7.5.2 and had an error in UmbracoTraceLog.Umbraco.txt which I found hard to track down.
The error came from a partial view macro for writing breadcrumbs. It was caused by looking for content for a page that was subsequently deleted. (Yes, the page Id was hard-coded into the macro!)
Even though the error said "Not Found", the log didn't tell me it was from my breadcrumbs macro, so it took a bit of work to track it down.
Is there any way I can find out where errors originate, e.g. a setting in the log4net.config file or something I could add to my macros?
is working on a reply...