Deleted Page Log

This script will keep a log file of page deletions. The script should be added as a listener to the Page Trashed event.

printInFile("deletionLog.txt", title + " (" + id + ") - Page Deleted by " + currentUserFullName() + " on " + currentDate());



Sample Log Output
Sample page 1 (123456) - Page Deleted by Jonathan Muse on 2019-01-15 09:21:02
Sample page 2 (123457) - Page Deleted by Jonathan Muse on 2019-01-15 09:21:42
Sample page 3 (123458) - Page Deleted by Jonathan Muse on 2019-01-15 09:21:59
Sample page 4 (123459) - Page Deleted by Jonathan Muse on 2019-01-15 09:22:17

See Other Recipes

See More Documentation