function getLogTypes() {
    if (logTypes) {
        return _promise2.default.resolve(logTypes);
    }

    return this.logTypes().then(function (types) {
        logTypes = types;
        return logTypes;
    });
}
Get the log for a given log type. Log buffer is reset after each request.
(Not part of the official Webdriver specification).

@param {String} type  The [log type](https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#log-type). This must be provided.
@return {Object[]} The list of [log entries](https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#log-entry-json-object)

@see  https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlog
@type protocol