You are here

class DrupalLoggerAppender in Facebook Instant Articles 7.2

Same name and namespace in other branches
  1. 7 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_articles
View 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

Namesort descending Modifiers Type Description Overrides
DrupalLoggerAppender::append public function Additionally sends logging event to Drupal watchdog.