src/behaviors/LogBehavior.php
protected function isLoggable()
    {
        if (Yii::$app instanceof Application && Yii::$app->hasModule('admin') && Yii::$app->has('adminuser')) {
            return true;
        }

        return false;
    }
protected function isLoggable()
    {
        if (Yii::$app instanceof Application && Yii::$app->hasModule('admin') && Yii::$app->has('adminuser')) {
            return true;
        }

        return false;
    }
protected function isLoggable ( ) { if ( Yii :: $ app instanceof Application && Yii :: $ app -> hasModule ( 'admin' ) && Yii :: $ app -> has ( 'adminuser' ) ) { return true ; } return false ; }
Method to ensure whether the current log process should be run or not as log behavior can also be attached
the very universal models.

@return boolean
@since 1.2.3
Method to ensure whether the current log process should be run or not as log behavior can also be attached the very universal models .