EllisLab text mark
Advanced Search
     
Logging not working…
Posted: 28 February 2011 08:55 PM   [ Ignore ]
Joined: 2011-02-28
2 posts

...unless I specify a full log path. I was under the impression that if left blank this will be system/logs? Unless I set log_path in config.php to the full system path of system/logs, CI never writes any logs.

What am I doing wrong?

My directory layout is like so:

index.php
application/
system/

as recommended.

 
Posted: 01 March 2011 01:48 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2006-12-26
727 posts

My log path is:

$config['log_path'getcwd() .'/' .APPPATH

 
...and it works for both LOCALHOST and ONLINE.
 
 
 

 Signature 

Joke of the day - Bulletin Board Ideas     (ongoing development site)

My Hippy Trail    Source code   

Latest Project

 
Posted: 01 March 2011 05:58 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2011-02-28
2 posts

Thanks. Setting it to

$config['log_path'getcwd() . '/' SYSDIR '/logs/'

works how I want it to.

However why when left blank it doesn’t do this anyway like it says in the proceeding comment in the config.php file?

 
Posted: 25 March 2011 12:43 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2010-03-01
67 posts

That worked for me also ... thanks all.

 
Posted: 02 July 2011 07:58 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2011-05-27
5 posts

The problem was probably that your application/logs directory was not writeable. chmod o+w application/logs will fix this.

 
Posted: 12 April 2012 05:25 AM   [ Ignore ]   [ # 5 ]   [ Rating: 1 ]
Avatar
Joined: 2008-01-05
8 posts

To the OP and others who are having this problem. As of version 2.0 the /logs/ and /cache/ folders have moved from /system/ to /application/.

So, leaving

$config['log_path'""

Codeigniter will expect a 777 permissions folder at /application/logs/

Codeigniter Change Log

 
Posted: 24 August 2012 05:48 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Joined: 2010-07-11
34 posts

2nd time I’ve run into this. Somebody needs to edit the upgrade guide to point out that we need to make an application/logs directory and update our application/config.php. Also, other updates occurred in the application folder that went unmentioned in the guide.

 Signature 

My Michigan computer repair services business, BienTek.

 
Posted: 24 August 2012 06:27 PM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Avatar
Joined: 2009-02-19
3819 posts

Is there a reason why you can’t add it yourself and issue a pull request on github so it gets added?  Otherwise, it probably won’t unless someone happens to read your post and decide to take it upon themselves, which isn’t too likely.

CI is a community-driven framework, and unless the community contributes with bug fixes/etc…

 Signature 
 
Posted: 01 October 2012 11:36 PM   [ Ignore ]   [ # 8 ]   [ Rating: 0 ]
Joined: 2012-10-01
4 posts

For me on windows 7 pro using Internet Information Services 7.5,

I unsuccessfully added the IIS_IUSR group with full permission, no success.

But adding my local account’s IUSR user account with full permission (write would probably do)  allowed codeigniter to write to the log directory