vlocode-project - v1.40.0-beta-4
    Preparing search index...

    Class DeveloperLogs

    Index

    Constructors

    Properties

    connectionProvider: SalesforceConnectionProvider
    logger: Logger
    queryService: QueryService

    Methods

    • Deletes all Developers for All users from the server and returns te number of delete log entries as number.

      Parameters

      • OptionalreportProgress: (progress: { progress: number; total: number }) => any

        Reports the progress of the delete operations

      • Optionaltoken: CancellationToken

        Cancellation token

      Returns Promise<number>

    • Clears the specified trace flags from the server

      Parameters

      • traceFlagsId: string

        Id of the trace flags to clear

      Returns Promise<void>

    • Clear all trace flags for the currently connected user; deletes TraceFlag where TracedEntityId is set to the id of the current user

      Returns Promise<void>

    • Extends/refresh the trace flag with the specified ID

      Parameters

      • traceFlagsId: string

        Id of the trace flags to extend

      • durationInSeconds: number = 3600

        Number of seconds starting now by which to extend the trace flag

      Returns Promise<void>

    • Gets basic details about the user for the current connection

      Returns Promise<{ id: string; type: string; username: string }>

    • Retrieves developer logs from the server

      Parameters

      • Optionalfrom: Date

        Since date

      • currentUserOnly: boolean = false

        true if to only query the logs fro the current user otherwise retiree all logs

      Returns Promise<DeveloperLog[]>

    • Set the trace flags based on the specified details.

      Parameters

      • debugLevel: string | { id: string }

        Logging level to set

      • type: "DEVELOPER_LOG" | "USER_DEBUG"

        Type of logging to set

      • OptionaltrackedEntityId: undefined

        Optionally the tracked entity; required for class and use debugging

      • OptionaldurationInSeconds: number

        Duration of the logging sessions; default is 1 hour or 3600 seconds

      Returns Promise<string>

      Trace flag instance id which can be used to extend or clear

    • Set the trace flags based on the specified details.

      Parameters

      • debugLevel: string | { id: string }

        Logging level to set

      • type: "USER_DEBUG" | "CLASS_TRACING"

        Type of logging to set

      • trackedEntityId: string

        Optionally the tracked entity; required for class and use debugging

      • OptionaldurationInSeconds: number

        Duration of the logging sessions; default is 1 hour or 3600 seconds

      Returns Promise<string>

      Trace flag instance id which can be used to extend or clear