Skip to content

Commit 5816317

Browse files
committed
Minor code tweaks
1 parent 73d4f0d commit 5816317

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/C3D/Extensions/Logging/Xunit/Extensions/XunitLoggerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public static ILogger<T> CreateLogger<T>(this ITestOutputHelper output, LogLevel
1212
public static ILogger<T> CreateLogger<T>(this IMessageSink output, LogLevel minLevel, DateTimeOffset? logStart = null) =>
1313
output.CreateLogger<T>(XunitLoggerOptions.CreateOptions(minLevel, logStart));
1414

15-
public static ILogger<T> CreateLogger<T>(this ITestOutputHelper output, Action<XunitLoggerOptions>? configure=null) =>
15+
public static ILogger<T> CreateLogger<T>(this ITestOutputHelper output, Action<XunitLoggerOptions>? configure = null) =>
1616
output.CreateLogger<T>(XunitLoggerOptions.CreateOptions(configure));
1717

1818
public static ILogger<T> CreateLogger<T>(this IMessageSink output, Action<XunitLoggerOptions>? configure = null) =>

src/C3D/Extensions/Logging/Xunit/Loggers/XunitLoggerBase.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using C3D.Extensions.Xunit.Logging.Loggers;
2-
using Microsoft.Extensions.Logging;
1+
using Microsoft.Extensions.Logging;
32
using System.Text;
43

54
namespace C3D.Extensions.Xunit.Logging.Loggers;
@@ -32,10 +31,10 @@ protected string BuildMessageText<TState>(LogLevel logLevel, TState state, Excep
3231
if (timeStamp is not null)
3332
{
3433
messageBuilder.Append(timeStamp);
35-
messageBuilder.Append(" ");
34+
messageBuilder.Append(' ');
3635
}
3736
messageBuilder.Append(category);
38-
messageBuilder.Append(" ");
37+
messageBuilder.Append(' ');
3938
messageBuilder.Append(logLevel.ToString());
4039
var targetLength = Math.Max(options.PrefixLength - 3, exceptionLinePrefix.Length + 2);
4140
if (messageBuilder.Length< targetLength)

0 commit comments

Comments
 (0)