Skip to content

Conversation

sungam3r
Copy link
Contributor

@sungam3r sungam3r commented Dec 4, 2022

No description provided.

@@ -118,7 +118,13 @@ public void Format(LogEvent logEvent, TextWriter output)
}

if (pt.Alignment.HasValue)
{
#if FEATURE_WRITE_STRINGBUILDER
Padding.Apply(output, ((StringWriter)writer).GetStringBuilder(), pt.Alignment);
Copy link
Contributor

@SimonCropp SimonCropp Dec 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: but i prefer to minimise whats inside the #if. so i would assign (StringWriter)writer to a variable outside the #if

but dont block the PR because of this

@SimonCropp
Copy link
Contributor

@nblumhardt LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants