MCPcopy
hub / github.com/parse-community/parse-server / getLogs

Method getLogs

src/Controllers/LoggerController.js:224–236  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

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;

Callers 4

handleGETMethod · 0.80

Calls 2

parseOptionsMethod · 0.80
queryMethod · 0.80

Tested by

no test coverage detected