LogsManager

management. LogsManager

LogsManager Represents the relationship between Auth0 and an Identity provider.

Constructor

new LogsManager(options)

Parameters:
Name Type Description
options Object The client options.
Properties
Name Type Attributes Description
baseUrl String The URL of the API.
headers Object <optional>
Headers to be included in all requests.
Source:

Members

resource :external:RestClient

Provides an abstraction layer for performing CRUD operations on Auth0 Logs.
Type:
Source:

(inner) apiOptions :Object

Options object for the Rest Client instance.
Type:
  • Object
Source:

Methods

get(params, cbopt) → {Promise|undefined}

Get an Auth0 log.
Parameters:
Name Type Attributes Description
params Object Log parameters.
Properties
Name Type Description
id String Log ID.
cb function <optional>
Callback function.
Source:
Returns:
Type
Promise | undefined
Example
management.logs.get({ id: EVENT_ID }, function (err, log) {
  if (err) {
    // Handle error.
  }

  console.log(log);
});

getAll(cbopt) → {Promise|undefined}

Get all logs.
Parameters:
Name Type Attributes Description
cb function <optional>
Callback function.
Source:
Returns:
Type
Promise | undefined
Example
management.logs.getAll(function (err, logs) {
  console.log(logs.length);
});