Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Codeigniter not creating any log files

Under config.php I have:

$config['log_threshold'] = 4;
$config['log_path'] = '/home/myaccount/logFilesFolder';

In index.php I have:

error_reporting(E_ALL);

The only way I can seem to get anything to log is if I chmod that directory to rwx (777), which doesn't seem right to me. That and it doesn't see to be logging all the errors.

In my local/dev environment it seems to be working but on my production server nothing is being logged. I can't seem to figure out why.

like image 921
Stephane Grenier Avatar asked Jun 20 '11 16:06

Stephane Grenier


1 Answers

The log filename in the configuration settings needs a trailing "/" above making sure the webserver process has writeable access to the directory.

like image 60
Stephane Grenier Avatar answered Sep 26 '22 11:09

Stephane Grenier