Monday, August 31, 2009

Re: Logfile location

There is a LOGS constant for Paths in CakePHP. You can find it in your cake_1.2.4.8284/cake/config/paths.php 
default is: 
define('LOGS', TMP.'logs'.DS);

TMP = if (!defined('TMP')) {
define('TMP', APP.'tmp'.DS);
}
DS = define('DS', DIRECTORY_SEPARATOR); 
I wouldn't change that!

So you have two choices to move all your tmp CakePHP files (sessions, logs, cache,..) to wherever you are by changing TMP path or you can only adjust the LOGS path. 

There is probably nicer way to change TMP dir (since have if (!defined('TMP'))) but I don't know where could be defined!

Hope it helps!

Kornelije Sajler

 

On Mon, Aug 31, 2009 at 15:40, Crazy <crazytje@gmail.com> wrote:

Hi,

In one of my projects it's required that the log files are being
logged to /var/logs/<appname>

I was wondering if it was possible to change the default location of
app/tmp/logs?





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: