# log

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

Logs a message with specified level

## Definition

```typescript
interface ILogger {
  // ... omitted for brevity
  log(
    level: string,
    message: string): void
}
```

## Parameters

- `level` (`string`)
- `message` (`string`)

## Applies to

- [ILogger](/reference/api/typescript/aspire.hosting/ilogger.md)
