Here’s a tool which lets AppleScript and anything else which can run a shell command make an entry in Sierra’s logs.
terminal
It can be valuable to know how to restart, run a command, and open an app using Terminal, AppleScript, and different methods in the Finder.
Writing advanced dialog code and building a friendly front-end for a complicated command tool, in AppleScript.
If you can’t use Console, use the log command in Terminal – except that has some major bugs which will hide log entries from you.
So how do you check your logs to see if backups have been made correctly? Forget Console – you’ve got to use Terminal.
Did Marco Marsala really wipe his complete company out with an error in a command?
How can I unhide my Home Library folder using a Terminal command?
How to build commands to robustly encrypt and decrypt files on your Mac.
Is there a sudo facility outside Terminal?
How can I undo Terminal commands?