If you as an ordinary user decide to run a program, the natural place for its logs are in your home directory. Your home directory is meant for you to store all your files, whether they are logs of a program you run or anything else.
If the program is executed as part of the system, running as a typically dedicated system user, then the natural place for its logs is in
/var/log. Create a subdirectory
/var/log/myapp and give it appropriate permissions so that your application can write there.
If relevant and your operating system allows it, mark the log file as append-only. Only root can do this. This has the advantage that if your application is compromised, it won't be able to erase past logs, which can be very useful for forensic analysis of the compromise. You will need root's intervention to rotate the log:
chown so that the log file is can no longer be opened by the application,
rename the log file, create a new append-only file with appropriate ownership, then notify the application to open the new empty file.
You can make any application log to the system logs by calling