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
Hi
I was just wonder what is the difference between these two loggers in surface controller;
private static readonly ILog Logger = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
LogHelper.Error
Do they both write to the same log file on default and would they cause any deadlock issues if they are both used in same controller to write to the same file?
Thanks Nick
Both methods do the same, I think you don't need care about log4net synchronization and lock model - this is should work well
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Log4net logger or Umbraco logger helper
Hi
I was just wonder what is the difference between these two loggers in surface controller;
private static readonly ILog Logger = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
LogHelper.Error
Do they both write to the same log file on default and would they cause any deadlock issues if they are both used in same controller to write to the same file?
Thanks Nick
Both methods do the same, I think you don't need care about log4net synchronization and lock model - this is should work well
is working on a reply...