Allow non-core code to write to the "History" (Audit log) #16771
hfloyd
started this conversation in
Features and ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I bumped up against a need for this when working with Umbraco Deploy (see: umbraco/Umbraco.Deploy.Issues#22) and the answer was that the Audit log is rather limited, in terms of access.
I think it would be great if it were possible to programmatically insert things into a node's Audit log. Right now the log shows core operations (Move, Sort, Save, Publish), but since there is so much custom functionality being added into Umbraco, and especially stuff automatically running on node events/notifications, or via some external updating routines, it would be nice if developers could add custom audit info.
For example, say you have code that runs on a schedule to programmatically update some nodes based on an import or API call. Being able to not only set the new property values, and Save & Publish, but to add "Updated via Product Import" to the History tab, with a timestamp would be helpful for Editors and Devs troubleshooting things.
In addition, Umbraco Deploy could then insert useful information like "Heather - Deployed to Live", "Joe - Restored from Staging", on nodes, which is a lot more useful than just "Administrator - Save & Publish".
Beta Was this translation helpful? Give feedback.
All reactions