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 134 posts 541 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 134 posts 541 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);
    
Please Sign in or register to post replies

Write your reply to:

Draft