CodeIgniter Forums

Full Version: CI v3 - Don't get any logs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I've started working on a project on CI v3 and I have noticed that I don't get any log errors, messages warnings at all, the application/logs folder is always empty, which is a little bit weird.

These are my settings:

folder structure:
Code:
- application
-- config
--- development
---- database.php
---- config.php
--- production
---- database.php
---- config.php

And the settings in my config.php files are these:
PHP Code:
// in application/config/development folder
$config['log_threshold'] = 4;

// in application/config/production folder
$config['log_threshold'] = 1

I was using the same folder structure and on CI v2 and worked great, I was getting warnings and errors when images where missing
or errors from log_message() etc, however in this doesn't seem to work.

Any ideas how I could fix this?
Check directory permissions.
(09-28-2015, 02:09 AM)slax0r Wrote: [ -> ]Check directory permissions.

I have done this and the folder is writable
(09-28-2015, 02:12 AM)Lykos22 Wrote: [ -> ]
(09-28-2015, 02:09 AM)slax0r Wrote: [ -> ]Check directory permissions.

I have done this and the folder is writable

It may be writable for you, but is it for the user running php (usually the web server's user, e.g. www-data or httpd)?
What's your $config['log_path'] value?
(09-28-2015, 02:31 AM)Narf Wrote: [ -> ]It may be writable for you, but is it for the user running php (usually the web server's user, e.g. www-data or httpd)?
What's your $config['log_path'] value?

I haven't changed the log_path. TheĀ  threshold is the only thing I have set in the config files

PHP Code:
$config['log_path'] = ''