LogsManager

management. LogsManager

LogsManager Represents the relationship between Auth0 and an Identity provider.

Constructor

new LogsManager(options)

Source:
Parameters:
Name Type Description
options Object

The client options.

Name Type Attributes Description
baseUrl String

The URL of the API.

headers Object <optional>

Headers to be included in all requests.

retry Object <optional>

Retry Policy Config

Members

(inner) auth0RestClient :external:RestClient

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

Source:
Type:

(inner) clientOptions :Object

Options object for the Rest Client instance.

Source:
Type:
  • Object

Methods

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

Get an Auth0 log.

Source:
Parameters:
Name Type Attributes Description
params Object

Log parameters.

Name Type Description
id String

Log ID.

cb function <optional>

Callback function.

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.

Source:
Parameters:
Name Type Attributes Description
cb function <optional>

Callback function.

Returns:
Type:
Promise | undefined
Example
management.logs.getAll(function (err, logs) {
  console.log(logs.length);
});