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
How to catch un handled exceptions before they are logged with log4net to add more information to it?
The only way would be to catch the exception yourself and then log it using the LogHelper class ie.
try { /// do something } catch (Exception ex) { global::Umbraco.Core.Logging.LogHelper.Error(this.GetType(), "Your message", ex); }
See Debugging Docs for more info on Logging.
Yeah, but my scenario is when I'm not able to catch this exception. It is generated by ImageProcessor and I wanted to know for what url it is thrown.
Cant you add more try.. catch blocks around the imageprocessing bit and log your extra information?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to catch un handled exceptions before they are logged with log4net to add more information to it?
How to catch un handled exceptions before they are logged with log4net to add more information to it?
The only way would be to catch the exception yourself and then log it using the LogHelper class ie.
See Debugging Docs for more info on Logging.
Yeah, but my scenario is when I'm not able to catch this exception. It is generated by ImageProcessor and I wanted to know for what url it is thrown.
Cant you add more try.. catch blocks around the imageprocessing bit and log your extra information?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.