Copied to clipboard

Flag this post as spam?

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


  • Steve Brereton 32 posts 173 karma points
    2 days ago
    Steve Brereton
    0

    Setting up logging for debugging (v7.6)

    Trying to add some debug logging to v7.6 (working out why our.umbraco.migration is simply not doing anything).

    Following the instructions on https://our.umbraco.com/Documentation/Fundamentals/Code/Debugging/Logging/index-v7

    However, when I add the line to the cs file added for the migration

    LogHelper.Info(this.GetType(),"Your logging message");
    

    I get 'ILogger should be used instead' ?

    The same line works fine for the cshtml template file that tells me the UDI is wrong.

Please Sign in or register to post replies

Write your reply to:

Draft