Logging Page Not Showing Anything

Log file has entries. Log file is owned by apache. Log file was working fine until I tried changing it to use syslog, which didn’t work, so I switched it back.

-rw-r-----. 1 apache apache 83562 Jun 9 11:28 nextcloud.log

‘log_type’ => ‘file’,
‘logfile’ => ‘nextcloud.log’,
‘loglevel’ => 0,

cat /etc/os-release
NAME=“CentOS Stream”

uname -a
Linux cloud 4.18.0-383.el8.x86_64 #1 SMP Wed Apr 20 15:38:08 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

When I refresh the logging page, entries show up for a split second, then the page goes blank. So it’s trying, but something’s obviously off. Not sure what.

Edit: After a reboot, the log file started showing on the logging page. Restarting the services didn’t help, so no idea why a reboot would help. Maybe something with SELinux?

I had same problem after upgrading to latest version 25.0.1

Now is working after changing ‘loglevel’ => 1, (not 0) in config.php as I reed here: Nextcloud not logging - #3 by Paul_Balm

“Valid values are: 0 = Debug, 1 = Info, 2 = Warning, 3 = Error, and 4 = Fatal.”