Copied to clipboard

Flag this post as spam?

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


  • Simone Chiaretta 135 posts 542 karma points c-trib
    Feb 18, 2016 @ 20:29
    Simone Chiaretta
    0

    How to write to the audit trail log

    Hello,

    I'm doing a small package that acts of content via a custom api and I wanted to add the operations to the audit trail.

    How can I do it? Cannot find any docs about this. Thx

  • Simone Chiaretta 135 posts 542 karma points c-trib
    Feb 18, 2016 @ 21:13
    Simone Chiaretta
    100

    From withing a UmbracoAuthorizedApiController:

    Services.AuditService.Add(AuditType.Custom, "MyComment", Security.GetUserId(), request.ContentId);
    
  • 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