Mirocow/yii2-elasticsearch

View on GitHub
src/components/loggers/YiiProgressLogger.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
namespace common\modules\elasticsearch\components\loggers;

use common\modules\elasticsearch\contracts\ProgressLoggerInterface;
use Yii;

final class YiiProgressLogger implements ProgressLoggerInterface
{
    /** @inheritdoc */
    public function logMessage($message)
    {
        Yii::info($message, 'elasticsearch');
    }

    /** @inheritdoc */
    public function logProgress($totalSteps, $currentStep)
    {
    }
}