code: public function getEnabled()
      {
          if (is_callable($this->_enabled)) {
              return call_user_func($this->_enabled, $this);
          }
  
          return $this->_enabled;
      }
docs: Check whether the log target is enabled.
  @property bool Indicates whether this log target is enabled. Defaults to true.
  @return bool A value indicating whether this log target is enabled.