> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/2.2/api/csharp/yarn/yarn.logger.md).

# Logger

Delegate in [Yarn](/2.2/api/csharp/yarn.md)

Inherits from `System.MulticastDelegate`

## Summary

Represents a method that receives diagnostic messages and error information from a [Dialogue](/2.2/api/csharp/yarn/yarn.dialogue.md) .

```csharp
public delegate void Logger(string message);
```

## Remarks

The text that this delegate receives may be output to a console, or sent to a log.

## Parameters

| Name             | Description                     |
| ---------------- | ------------------------------- |
| `string` message | The text that should be logged. |
