pocketmine\plugin\PluginBase::getLogger PHP Метод

getLogger() публичный Метод

public getLogger ( ) : PluginLogger
Результат PluginLogger
    public function getLogger()
    {
        return $this->logger;
    }

Usage Example

Пример #1
0
 /**
  * Show a notice when the money API is found
  *
  * @param PluginBase $plugin - current plugin
  * @param PluginBase $api - found plugin
  * @param LogLevel $level - optional log level
  */
 public static function foundMoney(PluginBase $plugin, $api, $level = LogLevel::INFO)
 {
     if (class_exists(__NAMESPACE__ . "\\mc", false)) {
         $plugin->getLogger()->log($level, TextFormat::BLUE . mc::_("Using money API from %1%", $api->getFullName()));
     } else {
         $plugin->getLogger()->log($level, TextFormat::BLUE . "Using money API from " . $api->getFullName());
     }
 }
All Usage Examples Of pocketmine\plugin\PluginBase::getLogger