Cannot get rid of creation of mysql.log
I posted it in the MySQL bug database and got an answer:

Adding log-error = /var/log/mysql/mysqld.log in the [mysqld] section in the file my.cnf creates mysql.log in the directory I want to have.

However, I still don't understand why it remains empty when the above setting isn't mentioned.