Well, there are plenty of filesystem functions available to PHP, but
putting anything in bootstrap.php to do that would pretty much negate
any benefits to logging. You'd never keep anything around long enough
to read it.

I suggest you look up how to configure logrotate to take care of the
logs for you. Or you could run a cron job to just empty them once in a
while. If you want to do that manually, you can do:

sudo sh -c "cat /dev/null >/path/to/logs/error.log"

On Tue, Apr 22, 2008 at 9:01 AM, Kupe3 <[EMAIL PROTECTED]> wrote:
>
>  Hello,
>
>  i know i can log variables to /app/tmp/logs/error.log
>  using $this->log($some_var);
>  but how can i clear this file (for example from bootstrap.php)?
>  >
>

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

Reply via email to