Events

Interface for handling build system events. This can be used for logging or visualization purposes.

Examples of what can be done with this include: - Showing build progress in the terminal. - Generating a JSON log file to be analyzed later. - Sending events to a web interface for visualization. - Generating a Gantt chart of task durations to see critical paths.

Members

Functions

buildFailed
void buildFailed(Duration duration, Exception e)

Called when a build has failed with the exception that was thrown.

buildStarted
void buildStarted()

Called when a build has started.

buildSucceeded
void buildSucceeded(Duration duration)

Called when a build has completed successfully.

taskFailed
void taskFailed(size_t worker, Task task, Duration duration, Exception e)

Called when a task has failed.

taskOutput
void taskOutput(size_t worker, ubyte[] chunk)

Called when a chunk of output is received from the task.

taskStarted
void taskStarted(size_t worker, Task task)

Called when a task has started. Returns a new event handler for tasks.

taskSucceeded
void taskSucceeded(size_t worker, Task task, Duration duration)

Called when a task has completed successfully.

Meta