Welcome Guest, Not a member yet? Register   Sign In
CI v3 - Don't get any logs
#1

(This post was last modified: 09-28-2015, 02:07 AM by Lykos22.)

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?
Reply
#2

Check directory permissions.
Reply
#3

(09-28-2015, 02:09 AM)slax0r Wrote: Check directory permissions.

I have done this and the folder is writable
Reply
#4

(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?
Reply
#5

(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'] = ''
Reply




Theme © iAndrew 2016 - Forum software by © MyBB