Wallmander\ElasticsearchIndexer\Model\Log::getLoggerInstance PHP Method

getLoggerInstance() public static method

Get the logger instance.
public static getLoggerInstance ( ) : Logger
return 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;
    }