Class WFLog

Description

The WFLog class provides some static helper methods for logging things.

Uses PEAR::Log.

Located in /framework/WFLog.php (line 20)

WFObject
   |
   --WFLog
Class Constant Summary
 TRACE_LOG = 'trace'
 WARN_LOG = 'warn'
Method Summary
static void log (string $message, [string $ident = 'general'], [level $level = PEAR_LOG_DEBUG])
static void logif ([ $level = PEAR_LOG_DEBUG])
static void logToFile ( $fileName,  $message)
Methods
static method log (line 34)

Log the passed exception to the framework's log folder.

  • access: public
static void log (string $message, [string $ident = 'general'], [level $level = PEAR_LOG_DEBUG])
  • string $message: Log message to log.
  • string $ident: The "ident" of the message to log.
  • level $level:

    The PEAR log level (PEAR_LOG_EMERG, PEAR_LOG_ALERT, PEAR_LOG_CRIT, PEAR_LOG_ERR, PEAR_LOG_WARNING, PEAR_LOG_NOTICE, PEAR_LOG_INFO, and PEAR_LOG_DEBUG)

    The message will be logged to the wf.log file in the web application's log directory, if the log level is less than or equal to the WF_LOG_LEVEL.

static method logif (line 49)
  • access: public
static void logif ([ $level = PEAR_LOG_DEBUG])
  • $level
static method logToFile (line 42)
  • access: public
static void logToFile ( $fileName,  $message)
  • $fileName
  • $message

Inherited Methods

Inherited From WFObject

WFObject::__construct()
WFObject::exposedProperties()
WFObject::getClass()
WFObject::keyPathToTargetAndKey()
WFObject::setValueForKey()
WFObject::setValueForKeyPath()
WFObject::setValuesForKeys()
WFObject::validatedSetValueForKey()
WFObject::validatedSetValueForKeyPath()
WFObject::validateObject()
WFObject::validateValueForKey()
WFObject::validateValueForKeyPath()
WFObject::valueForKey()
WFObject::valueForKeyPath()
WFObject::valueForStaticKey()
WFObject::valueForStaticKeyPath()
WFObject::valueForTargetAndKeyPath()
WFObject::valueForUndefinedKey()
WFObject::valueForUndefinedStaticKey()
WFObject::valuesForKeyPaths()
WFObject::valuesForKeys()
WFObject::_valueForStaticKey()
WFObject::__toString()
Class Constants
TRACE_LOG = 'trace' (line 23)
WARN_LOG = 'warn' (line 24)

Documentation generated on Thu, 14 May 2009 16:20:10 -0400 by phpDocumentor 1.4.2