public function PuSHEnvironment::log in Feeds 7.2
Same name and namespace in other branches
- 6 plugins/FeedsHTTPFetcher.inc \PuSHEnvironment::log()
- 7 plugins/FeedsHTTPFetcher.inc \PuSHEnvironment::log()
Implements PuSHSubscriberEnvironmentInterface::log().
Overrides PuSHSubscriberEnvironmentInterface::log
File
- plugins/
FeedsHTTPFetcher.inc, line 462
Class
- PuSHEnvironment
- Provide environmental functions to the PuSHSubscriber library.
Code
public function log($msg, $level = 'status') {
switch ($level) {
case 'error':
$severity = WATCHDOG_ERROR;
break;
case 'warning':
$severity = WATCHDOG_WARNING;
break;
default:
$severity = WATCHDOG_NOTICE;
break;
}
feeds_dbg($msg);
watchdog('FeedsHTTPFetcher', $msg, array(), $severity);
}