Copied to clipboard

Flag this post as spam?

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


  • Topic author was deleted

    May 08, 2013 @ 14:22

    Logging not working 6.0.5

    I'm trying both of these, but neither logs:

    Log.Add(LogTypes.Debug, 0, "Logging...");

    LogHelper.Debug(typeof(Editform), "Logging...");

     

    using v6.0.5.  The Log.Add() method worked fine in 4.11.x.  Could be something about my install of course.  Anyone else having issues?

    Untouched umbracoSettings.config

     <logging>
    <enableLogging>true</enableLogging>
    <enableAsyncLogging>true</enableAsyncLogging>
    <disabledLogTypes>
    <!-- <logTypeAlias>[alias-of-log-type-in-lowercase]</logTypeAlias> -->
    </disabledLogTypes>
    <!-- You can add your own logging tool by implementing the umbraco.BusinessLogic.Interfaces.ILog interface and add the reference here -->
    <!-- The external logger can also act as the audit trail storage by setting the logAuditTrail attribute to true -->
    <!--<externalLogger assembly="~/bin/assemblyFileName.dll" type="fully.qualified.namespace.and.type" logAuditTrail="false" /> -->
    </logging>
  • Comment author was deleted

    May 09, 2013 @ 15:25

    Ok I got logging to work sort of...

    v6.x only allows this to work:

    Log.Add(LogTypes.Custom, 0, "Test");

     

    Notice the type is "Custom". 

    On v4, you were able to use the other logtypes, now they silently fail.

     

Please Sign in or register to post replies

Write your reply to:

Draft