Piwigo LDAP Plugin cannot write to log

When enabling debug mode in the LDAP plugin, the following error messages appear when trying to login using LDAP credentials. When inspecting the piwigo container, the “/var/log/ldap_login.log” does not exist.

**Warning** : file_put_contents(/var/log/ldap_login.log): failed to open stream: Permission denied in **/config/www/gallery/plugins/Ldap_Login/class.ldap.php** on line **13**

**Warning** : file_put_contents(/var/log/ldap_login.log): failed to open stream: Permission denied in **/config/www/gallery/plugins/Ldap_Login/class.ldap.php** on line **13**

**Warning** : file_put_contents(/var/log/ldap_login.log): failed to open stream: Permission denied in **/config/www/gallery/plugins/Ldap_Login/class.ldap.php** on line **13**

**Warning** : file_put_contents(/var/log/ldap_login.log): failed to open stream: Permission denied in **/config/www/gallery/plugins/Ldap_Login/class.ldap.php** on line **13**

**Warning** : file_put_contents(/var/log/ldap_login.log): failed to open stream: Permission denied in **/config/www/gallery/plugins/Ldap_Login/class.ldap.php** on line **13**

**Warning** : file_put_contents(/var/log/ldap_login.log): failed to open stream: Permission denied in **/config/www/gallery/plugins/Ldap_Login/class.ldap.php** on line **13**

Does it start to work if you run

docker exec -it piwigo touch /var/log/ldap_login.log