original_string: protected static function should_log() : bool {
          global $CFG;
  
          // Respect the config setting.
          if (isset($CFG->task_logmode) && empty($CFG->task_logmode)) {
              return false;
          }
  
          $loggerclass = self::get_logger_classname();
          if (empty($loggerclass)) {
              return false;
          }
  
          return $loggerclass::is_configured();
      }
code: protected static function should_log() : bool {
          global $CFG;
  
          // Respect the config setting.
          if (isset($CFG->task_logmode) && empty($CFG->task_logmode)) {
              return false;
          }
  
          $loggerclass = self::get_logger_classname();
          if (empty($loggerclass)) {
              return false;
          }
  
          return $loggerclass::is_configured();
      }
code_tokens: protected static function should_log ( ) : bool { global $ CFG ; // Respect the config setting. if ( isset ( $ CFG -> task_logmode ) && empty ( $ CFG -> task_logmode ) ) { return false ; } $ loggerclass = self :: get_logger_classname ( ) ; if ( empty ( $ loggerclass ) ) { return false ; } return $ loggerclass :: is_configured ( ) ; }
docstring: Whether logging is possible and should be happening.
  
  @return  bool
docstring_tokens: Whether logging is possible and should be happening .