Wallmander\ElasticsearchIndexer\Model\Log::getLoggerInstance PHP 메소드

getLoggerInstance() 공개 정적인 메소드

Get the logger instance.
public static getLoggerInstance ( ) : Logger
리턴 Monolog\Logger
    public static function getLoggerInstance()
    {
        if (static::$log === null) {
            static::$log = new Logger('elasticsearch-indexer');
            static::$log->pushHandler(new StreamHandler(static::getFilePath(), Logger::ERROR));
        }
        return static::$log;
    }