(options = {})
| 222 | // order (optional) Direction of results returned, either “asc” or “desc”. Defaults to “desc”. |
| 223 | // size (optional) Number of rows returned by search. Defaults to 10 |
| 224 | getLogs(options = {}) { |
| 225 | if (!this.adapter) { |
| 226 | throw new Parse.Error(Parse.Error.PUSH_MISCONFIGURED, 'Logger adapter is not available'); |
| 227 | } |
| 228 | if (typeof this.adapter.query !== 'function') { |
| 229 | throw new Parse.Error( |
| 230 | Parse.Error.PUSH_MISCONFIGURED, |
| 231 | 'Querying logs is not supported with this adapter' |
| 232 | ); |
| 233 | } |
| 234 | options = LoggerController.parseOptions(options); |
| 235 | return this.adapter.query(options); |
| 236 | } |
| 237 | |
| 238 | expectedAdapterType() { |
| 239 | return LoggerAdapter; |
no test coverage detected