Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Enumeration

LoggerFragmentBuilder

A result builder for creating logger fragments in a declarative way.
@resultBuilder enum LoggerFragmentBuilder<let spaces : Int>

Overview

This allows you to build complex logger fragment combinations using Swift’s result builder syntax.

You can add spaces between fragments by specifying the number of spaces as the generic parameter. For example, @LoggerFragmentBuilder<1> will add a single space between fragments, while @LoggerFragmentBuilder<0> will not add any spaces.

Topics

Type Methods

See Also

Logger Fragments