<PackageReference Include="Serilog" Version="4.4.0" />

Serilog.Rendering.Padding

static class Padding
public static void Apply(TextWriter output, string value, ref Nullable alignment)

Writes the provided value to the output, applying direction-based padding when alignment is provided.