Re: Cakephp 1.3 not logging when debug set to 1 or 2

2011-11-03 Thread Florian Krämer
Can please everyone here who has the problem check if he is using
debug kit? Yes you do so - disable it - and let me know if logging
works again.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cakephp 1.3 not logging when debug set to 1 or 2

2011-11-03 Thread Florian Krämer
Ok, I've just tried something and updated debug kit. If you have this
problem try it.

On Nov 3, 11:59 am, Florian Krämer florian.krae...@cakedc.com wrote:
 Can please everyone here who has the problem check if he is using
 debug kit? Yes you do so - disable it - and let me know if logging
 works again.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cakephp 1.3 not logging when debug set to 1 or 2

2011-11-02 Thread José Lorenzo
Just tested it in a clean cakephp 1.3.13 install and works fine.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cakephp 1.3 not logging when debug set to 1 or 2

2011-10-08 Thread skyhigh
Did anyone find a solution to this issue?  I am having exactly the same 
problem. 

Calls to: 
   $this-log('test message', 'mylogfile'); 
will not log the message unless in the config/core.php file I set it to 
Configure:write('debug', 0); 

If the debug level is set to some other value such as 2 then nothing gets 
logged to the log file. 

I have looked at the previous answers posted here but they do not resolve 
this problem. 

1) It is not a Linux rights issue since CachePHP does successfully write to 
the log file if I set the debug level to 0.  It clearly has permission to 
write to the file. 

2) It is not a file name problem because of a conflict with CakePHP' debug 
mode usage of the same log file.  I have tested using several different file 
names such as 'mylogfile' and also using my name for the log file name and 
it consistently fails to write to the log file unless I set the debug level 
to 0. 

I am testing on a Linux server running Ubuntu 10.04

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cakephp 1.3 not logging when debug set to 1 or 2

2010-06-12 Thread Junaid
Hello,
 I tried that (changing the log name) and it still doesn't work! (only when
debug = 0).

CakeLog::write('trace', 'test');

$this-log('A debugging message.', 'trace');

For instance these commands do not seem to do anything when debug  0

Any other ideas? Appreciate any help. Thanks.




On Fri, Jun 11, 2010 at 3:32 PM, John Andersen j.andersen...@gmail.comwrote:

 Have you tried to use another name for the logfile? For example
 trace.
 I am assuming that there may be a conflict between CakePHP using the
 debug file and you wanting to do it at the same time, which may
 explain why you can write to the debug.log file when CakePHP is not
 debugging :)
 Enjoy,
   John

 On Jun 11, 3:32 pm, heratech shamsuddi...@gmail.com wrote:
  Hello,
   I upgraded to Cakephp 1.3.1 and I am now on 1.3.2-on both versions I
  am having problems when logging (using either
  CakeLog::write('debug', 'Something did not work') or $this-
 
  log(Something did not work!, 'debug'); ).
 
  Setup:
  PHP Version 5.3.1
  Xampp installed to opt
  Ubuntu 10.04 x64
 
  Permissions are all fine because it logs when debug = 0.
 
  Please help!
 
  Regards,
  heratech

 Check out the new CakePHP Questions site http://cakeqs.org and help others
 with their CakePHP related questions.

 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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Cakephp 1.3 not logging when debug set to 1 or 2

2010-06-12 Thread John Andersen
Ok, I just updated to 1.3.2 and tried this.
Works flawlessly on my Windows XP machine, using:
[code]
$this-log('Arrived at '.get_class().'-'.__FUNCTION__.'()', 'debug');
[/code]

And the debug log contains:
[code]
2010-06-12 13:08:40 Debug: Arrived at: ServicesController-
tell_a_friend()
[/code]

So you must have another issue somewhere!
Enjoy,
   John

On Jun 12, 3:21 pm, Junaid shamsuddi...@gmail.com wrote:
 Hello,
  I tried that (changing the log name) and it still doesn't work! (only when
 debug = 0).

         CakeLog::write('trace', 'test');

         $this-log('A debugging message.', 'trace');

 For instance these commands do not seem to do anything when debug  0

 Any other ideas? Appreciate any help. Thanks.
[snip]

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Cakephp 1.3 not logging when debug set to 1 or 2

2010-06-12 Thread Junaid
And thats with debug on 1 or 2?

On Sat, Jun 12, 2010 at 2:11 PM, John Andersen j.andersen...@gmail.comwrote:

 Ok, I just updated to 1.3.2 and tried this.
 Works flawlessly on my Windows XP machine, using:
 [code]
 $this-log('Arrived at '.get_class().'-'.__FUNCTION__.'()', 'debug');
 [/code]

 And the debug log contains:
 [code]
 2010-06-12 13:08:40 Debug: Arrived at: ServicesController-
 tell_a_friend()
 [/code]

 So you must have another issue somewhere!
 Enjoy,
   John

 On Jun 12, 3:21 pm, Junaid shamsuddi...@gmail.com wrote:
  Hello,
   I tried that (changing the log name) and it still doesn't work! (only
 when
  debug = 0).
 
  CakeLog::write('trace', 'test');
 
  $this-log('A debugging message.', 'trace');
 
  For instance these commands do not seem to do anything when debug  0
 
  Any other ideas? Appreciate any help. Thanks.
 [snip]

 Check out the new CakePHP Questions site http://cakeqs.org and help others
 with their CakePHP related questions.

 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+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Cakephp 1.3 not logging when debug set to 1 or 2

2010-06-12 Thread John Andersen
It works with debug set to either 0, 1 or 2.
Could it be a Linux rights issue?
Enjoy,
   John

On Jun 12, 5:22 pm, Junaid shamsuddi...@gmail.com wrote:
 And thats with debug on 1 or 2?

 On Sat, Jun 12, 2010 at 2:11 PM, John Andersen j.andersen...@gmail.comwrote:

  Ok, I just updated to 1.3.2 and tried this.
  Works flawlessly on my Windows XP machine, using:
  [code]
  $this-log('Arrived at '.get_class().'-'.__FUNCTION__.'()', 'debug');
  [/code]

  And the debug log contains:
  [code]
  2010-06-12 13:08:40 Debug: Arrived at: ServicesController-
  tell_a_friend()
  [/code]

  So you must have another issue somewhere!
  Enjoy,
    John
[snip]

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Cakephp 1.3 not logging when debug set to 1 or 2

2010-06-11 Thread John Andersen
Have you tried to use another name for the logfile? For example
trace.
I am assuming that there may be a conflict between CakePHP using the
debug file and you wanting to do it at the same time, which may
explain why you can write to the debug.log file when CakePHP is not
debugging :)
Enjoy,
   John

On Jun 11, 3:32 pm, heratech shamsuddi...@gmail.com wrote:
 Hello,
  I upgraded to Cakephp 1.3.1 and I am now on 1.3.2-on both versions I
 am having problems when logging (using either
 CakeLog::write('debug', 'Something did not work') or $this-

 log(Something did not work!, 'debug'); ).

 Setup:
 PHP Version 5.3.1
 Xampp installed to opt
 Ubuntu 10.04 x64

 Permissions are all fine because it logs when debug = 0.

 Please help!

 Regards,
 heratech

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en