Cake\ElasticSearch\Datasource\Connection::logger PHP Method

logger() public method

Sets the logger object instance. When called with no arguments it returns the currently setup logger instance.
public logger ( object $instance = null ) : object
$instance object logger object instance
return object logger instance
    public function logger($instance = null)
    {
        if ($instance === null) {
            return $this->_logger;
        }
        $this->_logger = $instance;
    }