Skip to main content
Editor logs serve as a comprehensive record of actions performed within the Encord platform’s Label Editor.

View Editor Logs

The following method is available on the Project class to retrieve Editor Logs. start_time and end_time are required parameters, while the rest are optional filters. For a description of every event and its properties, see the Editor Logs reference. To see how those properties are named in the SDK, see Read Events with the SDK.
Use the following script to view Editor Logs for a specific project and data unit.

View Task Actions

Task actions can be retrieved using the following method on the Project class. after is a required parameter, while the rest are optional filters.
Task actions come from a separate endpoint and use a different list of actions from the task events in the Editor Logs reference. Use the tables below for get_task_actions().
get_task_actions() returns the following action types. Import them with from encord.analytics import TaskActionType. Each task action includes the following attributes:
The following script retrieves approvals and rejections for a specific data unit in a Project over the last 7 days.

Use Cases

Get History of a Label

Approval and Rejection Rates

The following script prints the approval and rejection rates for users in a Project.

Find Reviewer in Consensus Projects

Exported labels don’t record who approved them. When a reviewer approves an annotator’s label in a Consensus Project, the label keeps the annotator as its creator. Use the editor logs to see who made each review decision. Review decisions are logged as the following actions: Each log entry returned by the SDK includes:
  • actor_user_email: The user who performed the action.
  • project_user_role: That user’s role in the Project.
  • workflow_stage_title and workflow_stage_type: The stage the action was taken in.
  • branch_name: The branch the action was taken on.
You can find reviewers with either of these methods:
  • get_editor_logs() returns each review action with the reviewer’s email, their Project role, the Workflow stage type, and the branch. It returns logs for a maximum range of 30 days per request.
  • get_task_actions() returns task-level actions only. Each one includes the reviewer’s email, the Workflow stage, and the task, but not the reviewer’s role or the branch. Use it when you only need to know who approved each task.
The following scripts list every approval made in Consensus review stages over the last 29 days.
From version 0.2.0 of the SDK, project.workflow raises WrongProjectTypeError for Projects whose Workflow is available only through project.workflow_v3. Check project.has_workflow before you use project.workflow. For Projects that support project.workflow_v3, see Workflows (workflow_v3).