Upgradesave place to store the logic hook / trigger


I’ve got my logic file unter:


If I call the logic hook from:


everything is working smoothly. But that file reads:

So where am I supposed to put my logic hook file?
If I place it in:


my code won’t be executed.

Any idea what I’m doing wrong here?