def METHOD_NAME(self):
    """Execute when the command is called.
    Log the command name to the log file and console.
    Also update the `doc` attribute.
    """
    self.doc = App.activeDocument()
    _log("Document: {}".format(self.doc.Label))
    _log("GuiCommand: {}".format(self.command_name))
    _msg("{}".format(16*"-"))
    _msg("GuiCommand: {}".format(self.command_name))