Copied to clipboard

Flag this post as spam?

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


  • Mahgo 32 posts 152 karma points
    May 20, 2016 @ 10:09
    Mahgo
    0

    Locating custom logging

    I'm trying to get custom logging working. For example:

    LoggerResolver.Current.Logger.Debug(this.GetType(), "Hello World");
    

    But I can't seem to work out where this is logged to; it's not in any of the App_Data/Logs and I can't find it anywhere in the database .

  • Ben Abbott 19 posts 124 karma points
    May 20, 2016 @ 16:31
    Ben Abbott
    100

    I think by default Debug messages are filtered out and only Info, Warnings and Error messages are logged

    To change this, edit the /config/log4net.config file and then in this section...

      <root>
        <priority value="Info"/>
        <appender-ref ref="AsynchronousLog4NetAppender" />
      </root>
    

    change 'priority value' to DEBUG

    Hope this helps

    Ben

  • Mahgo 32 posts 152 karma points
    May 22, 2016 @ 06:20
    Mahgo
    0

    Thanks Ben! That fixed my problem.

  • 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.

Please Sign in or register to post replies