diff --git a/libraries/src/Application/CMSApplication.php b/libraries/src/Application/CMSApplication.php index 8619b37a1fcdf..5d7409602d9e3 100644 --- a/libraries/src/Application/CMSApplication.php +++ b/libraries/src/Application/CMSApplication.php @@ -554,7 +554,11 @@ public function getPathway($name = null, $options = array()) else { // Name should not be used - Log::add('Name attribute is deprecated, in the future fetch the pathway through the respective application.', Log::WARNING, 'deprecated'); + $this->getLogger()->warning( + 'Name attribute is deprecated, in the future fetch the pathway ' + . 'through the respective application.', + array('category' => 'deprecated') + ); } try