Copied to clipboard

Flag this post as spam?

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


  • Nick 6 posts 96 karma points
    Nov 30, 2018 @ 02:53
    Nick
    0

    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

  • Yakov Lebski 550 posts 2114 karma points
    Dec 01, 2018 @ 09:12
    Yakov Lebski
    0

    Both methods do the same, I think you don't need care about log4net synchronization and lock model - this is should work well

Please Sign in or register to post replies

Write your reply to:

Draft