public static function Geocoder::log in Geocoder 7.2
Same name and namespace in other branches
- 8.3 src/Geocoder.php \Drupal\geocoder\Geocoder::log()
- 8.2 src/Geocoder.php \Drupal\geocoder\Geocoder::log()
Log a message in the Drupal watchdog and on screen.
Parameters
string $message: The message
string $type: The type of message
2 calls to Geocoder::log()
- Geocoder::geocode in src/
Geocoder.php - Geocode a string.
- Geocoder::reverse in src/
Geocoder.php - Reverse geocode coordinates.
File
- src/
Geocoder.php, line 167
Class
Namespace
Drupal\geocoderCode
public static function log($message, $type) {
\Drupal::service('logger.dblog')
->log($type, $message, array(
'channel' => 'geocoder',
));
\Drupal::service('messenger')
->addMessage($message, $type);
}