class DrupalLoggerAppender in Facebook Instant Articles 7
Same name and namespace in other branches
- 7.2 src/DrupalLoggerAppender.php \Drupal\fb_instant_articles\DrupalLoggerAppender
Adds Drupal logging functionality to existing SDK logging.
Class DrupalLoggerAppender @package Drupal\fb_instant_articles
Hierarchy
- class \Drupal\fb_instant_articles\DrupalLoggerAppender extends \Drupal\fb_instant_articles\LoggerAppender
Expanded class hierarchy of DrupalLoggerAppender
See also
fb_instant_articles_display_init()
File
- src/
DrupalLoggerAppender.php, line 18 - Contains \Drupal\fb_instant_articles\DrupalLoggerAppender.
Namespace
Drupal\fb_instant_articlesView source
class DrupalLoggerAppender extends \LoggerAppender {
/**
* {@inheritdoc}
*
* Additionally sends logging event to Drupal watchdog.
*/
public function append(\LoggerLoggingEvent $event) {
watchdog($event
->getLoggerName(), $event
->getRenderedMessage(), null, $event
->getLevel()
->getSyslogEquivalent());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DrupalLoggerAppender:: |
public | function | Additionally sends logging event to Drupal watchdog. |