> For the complete documentation index, see [llms.txt](https://vostok.gitbook.io/logging/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vostok.gitbook.io/logging/concepts/formatting/output-templates.md).

# Output templates

[Output templates](https://github.com/vostok/logging.formatting/blob/master/Vostok.Logging.Formatting/OutputTemplate.cs) are patterns used to render [log events](/logging/concepts/log-events.md) into text representation, shaping the output of text-based logs.

Their general syntax is identical to that of [message templates](/logging/concepts/syntax/message-templates.md), but output templates also support a set of [special predefined properties](/logging/concepts/formatting/special-tokens.md) that do not have to be present in log events.

Ordinary properties from log events can also be included in output templates.

Output templates can also contain uninterpreted text.

### Default template

Default output template `OutputTemplate.Default` looks like this:

```
{Timestamp} {Level} {traceContext:w}{operationContext:w}{sourceContext:w}{Message}{NewLine}{Exception}
```

See the list of [special properties](/logging/concepts/formatting/special-tokens.md) to understand the bulk of this template's content.&#x20;

See the sections about [source context](/logging/concepts/source-context.md) and [operation context](/logging/concepts/operation-context.md) to learn more about corresponding well-known properties mentioned in this template.&#x20;

See [format specifiers](/logging/concepts/formatting/format-specifiers.md) section to find out how the `:w` modifier works.&#x20;

### Custom templates:

See the guide dedicated to custom templates usage:

{% content-ref url="/pages/-L\_WpINjAxUVJVY2jZw9" %}
[Custom output templates](/logging/how-to-guides/using-custom-output-templates.md)
{% endcontent-ref %}

###
