Class 'OC\Log\File' not found - 'log_type' => 'file'


#1

owncloud-mysql-9.1.5-1.el7.noarch
owncloud-httpd-9.1.5-1.el7.noarch
owncloud-9.1.5-1.el7.noarch

php 5.4 and I've tried 7.0 via fpm, I'm on Centos 7

When I set in confg.php these:

'debug' => true,
'log_type' => 'file',

I see, in php-fpm log:

[24-Nov-2017 16:22:26 UTC] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, class 'OC\Log\File' not found in /usr/share/owncloud.clustered/lib/private/Server.php on line 369
[24-Nov-2017 16:22:26 UTC] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, class 'OC\Log\File' not found in /usr/share/owncloud.clustered/lib/private/Log.php on line 298

No log file is created.
What am I missing here?
many thanks, L


#2

I think this shows that you can't use "file" in there. Have you checked the documentation for a valid configuration?


#3

gee... my bad. Too many clouds.. :slight_smile: was looking at nextcloud docs.
cheers