yeah sh1t happens ![]()
see default path How to manage Nextcloud snap logs
example: (never copy & paste, always double check!)
nextcloud.occ config:system:set log_type file
nextcloud.occ config:system:set logfile --value=/var/snap/nextcloud/current/logs/nextcloud.log
example:

edit that config.php manually and take care to preserve the syntax and special characters, as incorrect formatting or misplaced characters and spaces may render your Nextcloud unusable.