Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • MuirisOG 382 posts 1284 karma points
    Sep 12, 2016 @ 15:15
    MuirisOG
    0

    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?

Please Sign in or register to post replies

Write your reply to:

Draft