[PP-dev] How to use Logger class?

0 views
Skip to first unread message

Brett R. Edgar

unread,
Nov 18, 2008, 2:48:35 PM11/18/08
to projectpier...@lists.sourceforge.net
Does anyone know how to properly use the Logger class? I can't seem to
figure it out. I'm trying to log a debug message in the
<pp_root>/application/helpers/format.php file, so I call the log method like
this:

Logger::log('some error message', Logger::DEBUG)

The result (with debug mode on) is that I get an error page in my browser
saying the logging session named 'NULL' is invalid. But according to the
definition of the Logger::log() function, it should pick up the 'default'
session.

Any ideas what I'm doing wrong?

--
===================
Brett Edgar
True Digital Security, Inc./DESA Research, LLC.
brett...@truedigitalsecurity.com
866.430.2595 x 103
www.truedigitalsecurity.com

Reply all
Reply to author
Forward
0 new messages