# IReportingStep

- Module: [Aspire.Hosting](/reference/api/typescript/aspire.hosting.md)
- Version: `13.3.0`
- Kind: `interface`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface IReportingStep {
  completeStep(
      completionText: string,
      completionState?: string,
      cancellationToken?: cancellationToken): void;
  completeStepMarkdown(
      markdownString: string,
      completionState?: string,
      cancellationToken?: cancellationToken): void;
  createMarkdownTask(
      markdownString: string,
      cancellationToken?: cancellationToken): IReportingTask;
  createTask(
      statusText: string,
      cancellationToken?: cancellationToken): IReportingTask;
  logStep(
      level: string,
      message: string): void;
  logStepMarkdown(
      level: string,
      markdownString: string): void;
}
```

## Methods

- [completeStep](/reference/api/typescript/aspire.hosting/ireportingstep/completestep.md) -- `method` -- Completes the reporting step with plain-text completion text
    ```typescript
  completeStep(completionText: string, completionState?: string, cancellationToken?: cancellationToken): void
  ```
- [completeStepMarkdown](/reference/api/typescript/aspire.hosting/ireportingstep/completestepmarkdown.md) -- `method` -- Completes the reporting step with Markdown-formatted completion text
    ```typescript
  completeStepMarkdown(markdownString: string, completionState?: string, cancellationToken?: cancellationToken): void
  ```
- [createMarkdownTask](/reference/api/typescript/aspire.hosting/ireportingstep/createmarkdowntask.md) -- `method` -- Creates a reporting task with Markdown-formatted status text
    ```typescript
  createMarkdownTask(markdownString: string, cancellationToken?: cancellationToken): IReportingTask
  ```
- [createTask](/reference/api/typescript/aspire.hosting/ireportingstep/createtask.md) -- `method` -- Creates a reporting task with plain-text status text
    ```typescript
  createTask(statusText: string, cancellationToken?: cancellationToken): IReportingTask
  ```
- [logStep](/reference/api/typescript/aspire.hosting/ireportingstep/logstep.md) -- `method` -- Logs a plain-text message for the reporting step
    ```typescript
  logStep(level: string, message: string): void
  ```
- [logStepMarkdown](/reference/api/typescript/aspire.hosting/ireportingstep/logstepmarkdown.md) -- `method` -- Logs a Markdown-formatted message for the reporting step
    ```typescript
  logStepMarkdown(level: string, markdownString: string): void
  ```
