As I mentioned in the comments, you are running the function programmatically with Custom Menu that is why it's not appearing at the upper right execution log.
If you run the function manually, you can access the execution log
in the upper right of the App Script.
Since you are running the function programmatically using Custom Menu
, the execution log history can be accessed on the left side of the App Script.