A simple logging mechanism for displaying information while debugging a client application.
This class uses the Singleton pattern so that debugging can be turned on once for the entire application.
Located in /Picasa/Logger.php (line 16)
The logger instance, used for the Singleton pattern.
Flag to determine whether or not to log statements.
Public method to get a logger instance. This is to ensure that only one instance is ever created.
Constructs a Logger object. Declared as private for Singleton pattern so there is only one instance.
Just checks the value of the enabled flag. Could be true or false. If true, log messages will be printed. If false, log messages will be supressed.
Prints the provided message to the screen followed by a line break.
This is defined as protected so that client applications will use logIfEnabled().
Logs a message if logging is currently enabled. If logging is not enabled, the message is supressed.
Sets the flag that determines whether or not to print log messages.
Documentation generated on Tue, 02 Jun 2009 14:51:53 -0700 by phpDocumentor 1.4.1