From 7cb322c0097ad12199fc727e0133c22ff9b2d337 Mon Sep 17 00:00:00 2001 From: Lucas Trzesniewski Date: Wed, 6 Dec 2023 21:22:30 +0100 Subject: [PATCH] Update packages and test under net8.0 --- .github/workflows/build.yml | 6 +- src/Directory.Build.props | 5 +- .../ZeroLog.Analyzers.Tests.csproj | 10 +- .../ZeroLog.Benchmarks.csproj | 10 +- .../ZeroLog.Tests.NetStandard.csproj | 12 +- src/ZeroLog.Tests/AllocationTests.cs | 6 +- ...expected_public_api.DotNet6_0.verified.txt | 28 +- ...expected_public_api.DotNet7_0.verified.txt | 28 +- ...expected_public_api.DotNet8_0.verified.txt | 1081 +++++++++++++++++ src/ZeroLog.Tests/Support/AssertExtensions.cs | 4 +- src/ZeroLog.Tests/ZeroLog.Tests.csproj | 16 +- src/ZeroLog/ZeroLog.csproj | 2 +- 12 files changed, 1144 insertions(+), 64 deletions(-) create mode 100644 src/ZeroLog.Tests/SanityChecks.should_have_expected_public_api.DotNet8_0.verified.txt diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 172c836..01f1b7f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,12 +12,12 @@ jobs: runs-on: windows-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup .NET - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 with: - dotnet-version: 7.0.x + dotnet-version: 8.0.x - name: Restore run: dotnet restore src/ZeroLog.sln diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 2a9b6b0..87da1eb 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -3,7 +3,7 @@ 4 true true - 11.0 + 12.0 false $(DefaultItemExcludes);*.DotSettings;*.ncrunchproject embedded @@ -34,8 +34,7 @@ - - + diff --git a/src/ZeroLog.Analyzers.Tests/ZeroLog.Analyzers.Tests.csproj b/src/ZeroLog.Analyzers.Tests/ZeroLog.Analyzers.Tests.csproj index d326faf..6774cb6 100644 --- a/src/ZeroLog.Analyzers.Tests/ZeroLog.Analyzers.Tests.csproj +++ b/src/ZeroLog.Analyzers.Tests/ZeroLog.Analyzers.Tests.csproj @@ -1,6 +1,6 @@ - net7.0 + net8.0 enable @@ -10,14 +10,14 @@ - + - - - + + + diff --git a/src/ZeroLog.Benchmarks/ZeroLog.Benchmarks.csproj b/src/ZeroLog.Benchmarks/ZeroLog.Benchmarks.csproj index 05442e7..b11d13d 100644 --- a/src/ZeroLog.Benchmarks/ZeroLog.Benchmarks.csproj +++ b/src/ZeroLog.Benchmarks/ZeroLog.Benchmarks.csproj @@ -1,6 +1,6 @@  - net7.0 + net8.0 Exe $(NoWarn);CS8002 false @@ -12,13 +12,13 @@ - + - + - - + + diff --git a/src/ZeroLog.Tests.NetStandard/ZeroLog.Tests.NetStandard.csproj b/src/ZeroLog.Tests.NetStandard/ZeroLog.Tests.NetStandard.csproj index f99df16..1e88cc1 100644 --- a/src/ZeroLog.Tests.NetStandard/ZeroLog.Tests.NetStandard.csproj +++ b/src/ZeroLog.Tests.NetStandard/ZeroLog.Tests.NetStandard.csproj @@ -8,12 +8,12 @@ - - - - - - + + + + + + diff --git a/src/ZeroLog.Tests/AllocationTests.cs b/src/ZeroLog.Tests/AllocationTests.cs index da7407e..657a050 100644 --- a/src/ZeroLog.Tests/AllocationTests.cs +++ b/src/ZeroLog.Tests/AllocationTests.cs @@ -167,14 +167,14 @@ public void should_not_allocate_using_all_formats_and_file_appender_builder() allocationsOnLoggingThread = GC.GetAllocatedBytesForCurrentThread() - allocationsOnLoggingThread; allocationsOnAppenderThread = _awaitableAppender.AllocatedBytesOnAppenderThread - allocationsOnAppenderThread; - Assert.Zero(allocationsOnLoggingThread, "Allocations on logging thread"); + Assert.That(allocationsOnLoggingThread, Is.Zero, "Allocations on logging thread"); #if NET7_0_OR_GREATER - Assert.Zero(allocationsOnAppenderThread, "Allocations on appender thread"); + Assert.That(allocationsOnAppenderThread, Is.Zero, "Allocations on appender thread"); #else // .NET 6 allocates 40 bytes on the appender thread, independently of the event count. // I don't know why, but .NET 7 doesn't exhibit this behavior anymore, so I suppose it's just some glitch. - Assert.LessOrEqual(allocationsOnAppenderThread, 40, "Allocations on appender thread"); + Assert.That(allocationsOnAppenderThread, Is.LessThanOrEqualTo(40), "Allocations on appender thread"); #endif } diff --git a/src/ZeroLog.Tests/SanityChecks.should_have_expected_public_api.DotNet6_0.verified.txt b/src/ZeroLog.Tests/SanityChecks.should_have_expected_public_api.DotNet6_0.verified.txt index ab69ef9..f985c59 100644 --- a/src/ZeroLog.Tests/SanityChecks.should_have_expected_public_api.DotNet6_0.verified.txt +++ b/src/ZeroLog.Tests/SanityChecks.should_have_expected_public_api.DotNet6_0.verified.txt @@ -3,7 +3,7 @@ public abstract class Appender : System.IDisposable { protected Appender() { } - public ZeroLog.LogLevel Level { get; set; } + public ZeroLog.LogLevel Level { get; init; } public virtual void Dispose() { } public virtual void Flush() { } public abstract void WriteMessage(ZeroLog.Formatting.LoggedMessage message); @@ -11,7 +11,7 @@ public class ConsoleAppender : ZeroLog.Appenders.StreamAppender { public ConsoleAppender() { } - public bool ColorOutput { get; set; } + public bool ColorOutput { get; init; } public override void Flush() { } public override void WriteMessage(ZeroLog.Formatting.LoggedMessage message) { } } @@ -19,9 +19,9 @@ { public DateAndSizeRollingFileAppender(string directory) { } public string Directory { get; } - public string FileExtension { get; set; } - public string FileNamePrefix { get; set; } - public long MaxFileSizeInBytes { get; set; } + public string FileExtension { get; init; } + public string FileNamePrefix { get; init; } + public long MaxFileSizeInBytes { get; init; } public override void Dispose() { } protected virtual void FileClosing() { } protected virtual void FileOpened() { } @@ -37,8 +37,8 @@ { protected StreamAppender() { } protected System.Text.Encoding Encoding { get; set; } - public ZeroLog.Formatting.Formatter Formatter { get; set; } protected System.IO.Stream? Stream { get; set; } + public ZeroLog.Formatting.Formatter Formatter { get; init; } public override void Dispose() { } public override void Flush() { } public override void WriteMessage(ZeroLog.Formatting.LoggedMessage message) { } @@ -47,8 +47,8 @@ { public TextWriterAppender() { } public TextWriterAppender(System.IO.TextWriter? textWriter) { } - public ZeroLog.Formatting.Formatter Formatter { get; set; } public System.IO.TextWriter? TextWriter { get; set; } + public ZeroLog.Formatting.Formatter Formatter { get; init; } public override void Dispose() { } public override void Flush() { } public override void WriteMessage(ZeroLog.Formatting.LoggedMessage message) { } @@ -102,16 +102,16 @@ namespace ZeroLog.Configuration { public ZeroLogConfiguration() { } public System.TimeSpan AppenderQuarantineDelay { get; set; } - public ZeroLog.Configuration.AppendingStrategy AppendingStrategy { get; set; } public bool AutoRegisterEnums { get; set; } - public int LogMessageBufferSize { get; set; } - public int LogMessagePoolSize { get; set; } - public int LogMessageStringCapacity { get; set; } public ZeroLog.Configuration.ILoggerConfigurationCollection Loggers { get; } public string NullDisplayString { get; set; } public ZeroLog.Configuration.RootLoggerConfiguration RootLogger { get; } public string TruncatedMessageSuffix { get; set; } - public bool UseBackgroundThread { get; set; } + public ZeroLog.Configuration.AppendingStrategy AppendingStrategy { get; init; } + public int LogMessageBufferSize { get; init; } + public int LogMessagePoolSize { get; init; } + public int LogMessageStringCapacity { get; init; } + public bool UseBackgroundThread { get; init; } public void ApplyChanges() { } public void SetLogLevel(string? loggerName, ZeroLog.LogLevel? logLevel) { } public static ZeroLog.Configuration.ZeroLogConfiguration CreateTestConfiguration() { } @@ -122,8 +122,8 @@ namespace ZeroLog.Formatting public sealed class DefaultFormatter : ZeroLog.Formatting.Formatter { public DefaultFormatter() { } - public string JsonSeparator { get; set; } - public string PrefixPattern { get; set; } + public string JsonSeparator { get; init; } + public string PrefixPattern { get; init; } protected override void WriteMessage(ZeroLog.Formatting.LoggedMessage message) { } } public abstract class Formatter diff --git a/src/ZeroLog.Tests/SanityChecks.should_have_expected_public_api.DotNet7_0.verified.txt b/src/ZeroLog.Tests/SanityChecks.should_have_expected_public_api.DotNet7_0.verified.txt index ab69ef9..f985c59 100644 --- a/src/ZeroLog.Tests/SanityChecks.should_have_expected_public_api.DotNet7_0.verified.txt +++ b/src/ZeroLog.Tests/SanityChecks.should_have_expected_public_api.DotNet7_0.verified.txt @@ -3,7 +3,7 @@ public abstract class Appender : System.IDisposable { protected Appender() { } - public ZeroLog.LogLevel Level { get; set; } + public ZeroLog.LogLevel Level { get; init; } public virtual void Dispose() { } public virtual void Flush() { } public abstract void WriteMessage(ZeroLog.Formatting.LoggedMessage message); @@ -11,7 +11,7 @@ public class ConsoleAppender : ZeroLog.Appenders.StreamAppender { public ConsoleAppender() { } - public bool ColorOutput { get; set; } + public bool ColorOutput { get; init; } public override void Flush() { } public override void WriteMessage(ZeroLog.Formatting.LoggedMessage message) { } } @@ -19,9 +19,9 @@ { public DateAndSizeRollingFileAppender(string directory) { } public string Directory { get; } - public string FileExtension { get; set; } - public string FileNamePrefix { get; set; } - public long MaxFileSizeInBytes { get; set; } + public string FileExtension { get; init; } + public string FileNamePrefix { get; init; } + public long MaxFileSizeInBytes { get; init; } public override void Dispose() { } protected virtual void FileClosing() { } protected virtual void FileOpened() { } @@ -37,8 +37,8 @@ { protected StreamAppender() { } protected System.Text.Encoding Encoding { get; set; } - public ZeroLog.Formatting.Formatter Formatter { get; set; } protected System.IO.Stream? Stream { get; set; } + public ZeroLog.Formatting.Formatter Formatter { get; init; } public override void Dispose() { } public override void Flush() { } public override void WriteMessage(ZeroLog.Formatting.LoggedMessage message) { } @@ -47,8 +47,8 @@ { public TextWriterAppender() { } public TextWriterAppender(System.IO.TextWriter? textWriter) { } - public ZeroLog.Formatting.Formatter Formatter { get; set; } public System.IO.TextWriter? TextWriter { get; set; } + public ZeroLog.Formatting.Formatter Formatter { get; init; } public override void Dispose() { } public override void Flush() { } public override void WriteMessage(ZeroLog.Formatting.LoggedMessage message) { } @@ -102,16 +102,16 @@ namespace ZeroLog.Configuration { public ZeroLogConfiguration() { } public System.TimeSpan AppenderQuarantineDelay { get; set; } - public ZeroLog.Configuration.AppendingStrategy AppendingStrategy { get; set; } public bool AutoRegisterEnums { get; set; } - public int LogMessageBufferSize { get; set; } - public int LogMessagePoolSize { get; set; } - public int LogMessageStringCapacity { get; set; } public ZeroLog.Configuration.ILoggerConfigurationCollection Loggers { get; } public string NullDisplayString { get; set; } public ZeroLog.Configuration.RootLoggerConfiguration RootLogger { get; } public string TruncatedMessageSuffix { get; set; } - public bool UseBackgroundThread { get; set; } + public ZeroLog.Configuration.AppendingStrategy AppendingStrategy { get; init; } + public int LogMessageBufferSize { get; init; } + public int LogMessagePoolSize { get; init; } + public int LogMessageStringCapacity { get; init; } + public bool UseBackgroundThread { get; init; } public void ApplyChanges() { } public void SetLogLevel(string? loggerName, ZeroLog.LogLevel? logLevel) { } public static ZeroLog.Configuration.ZeroLogConfiguration CreateTestConfiguration() { } @@ -122,8 +122,8 @@ namespace ZeroLog.Formatting public sealed class DefaultFormatter : ZeroLog.Formatting.Formatter { public DefaultFormatter() { } - public string JsonSeparator { get; set; } - public string PrefixPattern { get; set; } + public string JsonSeparator { get; init; } + public string PrefixPattern { get; init; } protected override void WriteMessage(ZeroLog.Formatting.LoggedMessage message) { } } public abstract class Formatter diff --git a/src/ZeroLog.Tests/SanityChecks.should_have_expected_public_api.DotNet8_0.verified.txt b/src/ZeroLog.Tests/SanityChecks.should_have_expected_public_api.DotNet8_0.verified.txt new file mode 100644 index 0000000..f985c59 --- /dev/null +++ b/src/ZeroLog.Tests/SanityChecks.should_have_expected_public_api.DotNet8_0.verified.txt @@ -0,0 +1,1081 @@ +namespace ZeroLog.Appenders +{ + public abstract class Appender : System.IDisposable + { + protected Appender() { } + public ZeroLog.LogLevel Level { get; init; } + public virtual void Dispose() { } + public virtual void Flush() { } + public abstract void WriteMessage(ZeroLog.Formatting.LoggedMessage message); + } + public class ConsoleAppender : ZeroLog.Appenders.StreamAppender + { + public ConsoleAppender() { } + public bool ColorOutput { get; init; } + public override void Flush() { } + public override void WriteMessage(ZeroLog.Formatting.LoggedMessage message) { } + } + public class DateAndSizeRollingFileAppender : ZeroLog.Appenders.StreamAppender + { + public DateAndSizeRollingFileAppender(string directory) { } + public string Directory { get; } + public string FileExtension { get; init; } + public string FileNamePrefix { get; init; } + public long MaxFileSizeInBytes { get; init; } + public override void Dispose() { } + protected virtual void FileClosing() { } + protected virtual void FileOpened() { } + protected virtual string GetFileName(System.DateOnly date, int number) { } + public override void WriteMessage(ZeroLog.Formatting.LoggedMessage message) { } + } + public sealed class NoopAppender : ZeroLog.Appenders.Appender + { + public NoopAppender() { } + public override void WriteMessage(ZeroLog.Formatting.LoggedMessage message) { } + } + public abstract class StreamAppender : ZeroLog.Appenders.Appender + { + protected StreamAppender() { } + protected System.Text.Encoding Encoding { get; set; } + protected System.IO.Stream? Stream { get; set; } + public ZeroLog.Formatting.Formatter Formatter { get; init; } + public override void Dispose() { } + public override void Flush() { } + public override void WriteMessage(ZeroLog.Formatting.LoggedMessage message) { } + } + public class TextWriterAppender : ZeroLog.Appenders.Appender + { + public TextWriterAppender() { } + public TextWriterAppender(System.IO.TextWriter? textWriter) { } + public System.IO.TextWriter? TextWriter { get; set; } + public ZeroLog.Formatting.Formatter Formatter { get; init; } + public override void Dispose() { } + public override void Flush() { } + public override void WriteMessage(ZeroLog.Formatting.LoggedMessage message) { } + } +} +namespace ZeroLog.Configuration +{ + public sealed class AppenderConfiguration + { + public AppenderConfiguration(ZeroLog.Appenders.Appender appender) { } + public ZeroLog.Appenders.Appender Appender { get; } + public ZeroLog.LogLevel Level { get; set; } + public static ZeroLog.Configuration.AppenderConfiguration op_Implicit(ZeroLog.Appenders.Appender appender) { } + } + public enum AppendingStrategy + { + Asynchronous = 0, + Synchronous = 1, + } + public interface ILoggerConfigurationCollection : System.Collections.Generic.ICollection, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + void Add(string name, ZeroLog.LogLevel level); + } + public enum LogMessagePoolExhaustionStrategy + { + DropLogMessageAndNotifyAppenders = 0, + DropLogMessage = 1, + WaitUntilAvailable = 2, + Allocate = 3, + Default = 0, + } + public sealed class LoggerConfiguration + { + public LoggerConfiguration(string name) { } + public LoggerConfiguration(System.Type type) { } + public LoggerConfiguration(string name, ZeroLog.LogLevel level) { } + public LoggerConfiguration(System.Type type, ZeroLog.LogLevel level) { } + public System.Collections.Generic.ICollection Appenders { get; } + public bool IncludeParentAppenders { get; set; } + public ZeroLog.LogLevel? Level { get; set; } + public ZeroLog.Configuration.LogMessagePoolExhaustionStrategy? LogMessagePoolExhaustionStrategy { get; set; } + public string Name { get; } + } + public sealed class RootLoggerConfiguration + { + public System.Collections.Generic.ICollection Appenders { get; } + public ZeroLog.LogLevel Level { get; set; } + public ZeroLog.Configuration.LogMessagePoolExhaustionStrategy LogMessagePoolExhaustionStrategy { get; set; } + } + public sealed class ZeroLogConfiguration + { + public ZeroLogConfiguration() { } + public System.TimeSpan AppenderQuarantineDelay { get; set; } + public bool AutoRegisterEnums { get; set; } + public ZeroLog.Configuration.ILoggerConfigurationCollection Loggers { get; } + public string NullDisplayString { get; set; } + public ZeroLog.Configuration.RootLoggerConfiguration RootLogger { get; } + public string TruncatedMessageSuffix { get; set; } + public ZeroLog.Configuration.AppendingStrategy AppendingStrategy { get; init; } + public int LogMessageBufferSize { get; init; } + public int LogMessagePoolSize { get; init; } + public int LogMessageStringCapacity { get; init; } + public bool UseBackgroundThread { get; init; } + public void ApplyChanges() { } + public void SetLogLevel(string? loggerName, ZeroLog.LogLevel? logLevel) { } + public static ZeroLog.Configuration.ZeroLogConfiguration CreateTestConfiguration() { } + } +} +namespace ZeroLog.Formatting +{ + public sealed class DefaultFormatter : ZeroLog.Formatting.Formatter + { + public DefaultFormatter() { } + public string JsonSeparator { get; init; } + public string PrefixPattern { get; init; } + protected override void WriteMessage(ZeroLog.Formatting.LoggedMessage message) { } + } + public abstract class Formatter + { + protected Formatter() { } + protected void AdvanceBy(int charCount) { } + public System.ReadOnlySpan FormatMessage(ZeroLog.Formatting.LoggedMessage message) { } + protected System.Span GetOutput() { } + protected System.Span GetRemainingBuffer() { } + protected void Write(System.ReadOnlySpan value) { } + protected void WriteLine() { } + protected void WriteLine(System.ReadOnlySpan value) { } + protected abstract void WriteMessage(ZeroLog.Formatting.LoggedMessage message); + } + public sealed class KeyValueList + { + public int Count { get; } + public ZeroLog.Formatting.LoggedKeyValue this[int index] { get; } + public ZeroLog.Formatting.KeyValueList.Enumerator GetEnumerator() { } + [System.Runtime.CompilerServices.IsByRefLike] + public struct Enumerator + { + public ZeroLog.Formatting.LoggedKeyValue Current { get; } + public bool MoveNext() { } + } + } + [System.Runtime.CompilerServices.IsByRefLike] + public readonly struct LoggedKeyValue + { + public bool IsBoolean { get; } + public bool IsNull { get; } + public bool IsNumeric { get; } + public string Key { get; } + public System.ReadOnlySpan Value { get; } + public System.Type? ValueType { get; } + public override string ToString() { } + public bool TryGetValue(out T result) + where T : unmanaged { } + } + public sealed class LoggedMessage + { + public System.Exception? Exception { get; } + public ZeroLog.Formatting.KeyValueList KeyValues { get; } + public ZeroLog.LogLevel Level { get; } + public string? LoggerName { get; } + public System.ReadOnlySpan Message { get; } + public System.Threading.Thread? Thread { get; } + public System.DateTime Timestamp { get; } + public ZeroLog.Formatting.LoggedMessage Clone() { } + public override string ToString() { } + } +} +namespace ZeroLog +{ + public sealed class Log + { + public bool IsDebugEnabled { get; } + public bool IsErrorEnabled { get; } + public bool IsFatalEnabled { get; } + public bool IsInfoEnabled { get; } + public bool IsTraceEnabled { get; } + public bool IsWarnEnabled { get; } + public ZeroLog.LogMessage Debug() { } + public void Debug([System.Runtime.CompilerServices.InterpolatedStringHandlerArgument("")] ZeroLog.Log.DebugInterpolatedStringHandler message) { } + public void Debug(string? message) { } + public void Debug([System.Runtime.CompilerServices.InterpolatedStringHandlerArgument("")] ZeroLog.Log.DebugInterpolatedStringHandler message, System.Exception? ex) { } + public void Debug(string? message, System.Exception? ex) { } + public ZeroLog.LogMessage Error() { } + public void Error([System.Runtime.CompilerServices.InterpolatedStringHandlerArgument("")] ZeroLog.Log.ErrorInterpolatedStringHandler message) { } + public void Error(string? message) { } + public void Error([System.Runtime.CompilerServices.InterpolatedStringHandlerArgument("")] ZeroLog.Log.ErrorInterpolatedStringHandler message, System.Exception? ex) { } + public void Error(string? message, System.Exception? ex) { } + public ZeroLog.LogMessage Fatal() { } + public void Fatal([System.Runtime.CompilerServices.InterpolatedStringHandlerArgument("")] ZeroLog.Log.FatalInterpolatedStringHandler message) { } + public void Fatal(string? message) { } + public void Fatal([System.Runtime.CompilerServices.InterpolatedStringHandlerArgument("")] ZeroLog.Log.FatalInterpolatedStringHandler message, System.Exception? ex) { } + public void Fatal(string? message, System.Exception? ex) { } + public ZeroLog.LogMessage ForLevel(ZeroLog.LogLevel level) { } + public ZeroLog.LogMessage Info() { } + public void Info([System.Runtime.CompilerServices.InterpolatedStringHandlerArgument("")] ZeroLog.Log.InfoInterpolatedStringHandler message) { } + public void Info(string? message) { } + public void Info([System.Runtime.CompilerServices.InterpolatedStringHandlerArgument("")] ZeroLog.Log.InfoInterpolatedStringHandler message, System.Exception? ex) { } + public void Info(string? message, System.Exception? ex) { } + public bool IsEnabled(ZeroLog.LogLevel level) { } + public override string ToString() { } + public ZeroLog.LogMessage Trace() { } + public void Trace([System.Runtime.CompilerServices.InterpolatedStringHandlerArgument("")] ZeroLog.Log.TraceInterpolatedStringHandler message) { } + public void Trace(string? message) { } + public void Trace([System.Runtime.CompilerServices.InterpolatedStringHandlerArgument("")] ZeroLog.Log.TraceInterpolatedStringHandler message, System.Exception? ex) { } + public void Trace(string? message, System.Exception? ex) { } + public ZeroLog.LogMessage Warn() { } + public void Warn([System.Runtime.CompilerServices.InterpolatedStringHandlerArgument("")] ZeroLog.Log.WarnInterpolatedStringHandler message) { } + public void Warn(string? message) { } + public void Warn([System.Runtime.CompilerServices.InterpolatedStringHandlerArgument("")] ZeroLog.Log.WarnInterpolatedStringHandler message, System.Exception? ex) { } + public void Warn(string? message, System.Exception? ex) { } + [System.Runtime.CompilerServices.InterpolatedStringHandler] + [System.Runtime.CompilerServices.IsByRefLike] + public readonly struct DebugInterpolatedStringHandler + { + public DebugInterpolatedStringHandler(int literalLength, int formattedCount, ZeroLog.Log log, out bool isEnabled) { } + public void AppendFormatted(bool value) { } + public void AppendFormatted(byte value) { } + public void AppendFormatted(char value) { } + public void AppendFormatted(System.Char? value) { } + public void AppendFormatted(System.DateOnly value) { } + public void AppendFormatted(System.DateOnly? value) { } + public void AppendFormatted(System.DateTime value) { } + public void AppendFormatted(System.DateTime? value) { } + public void AppendFormatted(System.DateTimeOffset value) { } + public void AppendFormatted(System.DateTimeOffset? value) { } + public void AppendFormatted(decimal value) { } + public void AppendFormatted(double value) { } + public void AppendFormatted(System.Guid value) { } + public void AppendFormatted(System.Guid? value) { } + public void AppendFormatted(short value) { } + public void AppendFormatted(int value) { } + public void AppendFormatted(long value) { } + public void AppendFormatted(System.IntPtr value) { } + public void AppendFormatted(System.IntPtr? value) { } + public void AppendFormatted(System.ReadOnlySpan value) { } + public void AppendFormatted(System.ReadOnlySpan value) { } + public void AppendFormatted(sbyte value) { } + public void AppendFormatted(float value) { } + public void AppendFormatted(System.TimeOnly value) { } + public void AppendFormatted(System.TimeOnly? value) { } + public void AppendFormatted(System.TimeSpan value) { } + public void AppendFormatted(System.TimeSpan? value) { } + public void AppendFormatted(ushort value) { } + public void AppendFormatted(uint value) { } + public void AppendFormatted(ulong value) { } + public void AppendFormatted(System.UIntPtr value) { } + public void AppendFormatted(System.UIntPtr? value) { } + public void AppendFormatted(bool? value) { } + public void AppendFormatted(byte? value) { } + public void AppendFormatted(decimal? value) { } + public void AppendFormatted(double? value) { } + public void AppendFormatted(float? value) { } + public void AppendFormatted(int? value) { } + public void AppendFormatted(long? value) { } + public void AppendFormatted(sbyte? value) { } + public void AppendFormatted(short? value) { } + public void AppendFormatted(string? value) { } + public void AppendFormatted(uint? value) { } + public void AppendFormatted(ulong? value) { } + public void AppendFormatted(ushort? value) { } + public void AppendFormatted(byte value, string format) { } + public void AppendFormatted(System.DateOnly value, string format) { } + public void AppendFormatted(System.DateOnly? value, string format) { } + public void AppendFormatted(System.DateTime value, string format) { } + public void AppendFormatted(System.DateTime? value, string format) { } + public void AppendFormatted(System.DateTimeOffset value, string format) { } + public void AppendFormatted(System.DateTimeOffset? value, string format) { } + public void AppendFormatted(decimal value, string format) { } + public void AppendFormatted(double value, string format) { } + public void AppendFormatted(System.Guid value, string format) { } + public void AppendFormatted(System.Guid? value, string format) { } + public void AppendFormatted(short value, string format) { } + public void AppendFormatted(int value, string format) { } + public void AppendFormatted(long value, string format) { } + public void AppendFormatted(System.IntPtr value, string format) { } + public void AppendFormatted(System.IntPtr? value, string format) { } + public void AppendFormatted(sbyte value, string format) { } + public void AppendFormatted(float value, string format) { } + public void AppendFormatted(System.TimeOnly value, string format) { } + public void AppendFormatted(System.TimeOnly? value, string format) { } + public void AppendFormatted(System.TimeSpan value, string format) { } + public void AppendFormatted(System.TimeSpan? value, string format) { } + public void AppendFormatted(ushort value, string format) { } + public void AppendFormatted(uint value, string format) { } + public void AppendFormatted(ulong value, string format) { } + public void AppendFormatted(System.UIntPtr value, string format) { } + public void AppendFormatted(System.UIntPtr? value, string format) { } + public void AppendFormatted(byte? value, string format) { } + public void AppendFormatted(decimal? value, string format) { } + public void AppendFormatted(double? value, string format) { } + public void AppendFormatted(float? value, string format) { } + public void AppendFormatted(int? value, string format) { } + public void AppendFormatted(long? value, string format) { } + public void AppendFormatted(sbyte? value, string format) { } + public void AppendFormatted(short? value, string format) { } + public void AppendFormatted(uint? value, string format) { } + public void AppendFormatted(ulong? value, string format) { } + public void AppendFormatted(ushort? value, string format) { } + public void AppendFormatted(T value) + where T : struct, System.Enum { } + public void AppendFormatted(T? value) + where T : struct, System.Enum { } + public void AppendFormatted(ZeroLog.LogMessage.AppendOperation operation) { } + public void AppendLiteral(string value) { } + } + [System.Runtime.CompilerServices.InterpolatedStringHandler] + [System.Runtime.CompilerServices.IsByRefLike] + public readonly struct ErrorInterpolatedStringHandler + { + public ErrorInterpolatedStringHandler(int literalLength, int formattedCount, ZeroLog.Log log, out bool isEnabled) { } + public void AppendFormatted(bool value) { } + public void AppendFormatted(byte value) { } + public void AppendFormatted(char value) { } + public void AppendFormatted(System.Char? value) { } + public void AppendFormatted(System.DateOnly value) { } + public void AppendFormatted(System.DateOnly? value) { } + public void AppendFormatted(System.DateTime value) { } + public void AppendFormatted(System.DateTime? value) { } + public void AppendFormatted(System.DateTimeOffset value) { } + public void AppendFormatted(System.DateTimeOffset? value) { } + public void AppendFormatted(decimal value) { } + public void AppendFormatted(double value) { } + public void AppendFormatted(System.Guid value) { } + public void AppendFormatted(System.Guid? value) { } + public void AppendFormatted(short value) { } + public void AppendFormatted(int value) { } + public void AppendFormatted(long value) { } + public void AppendFormatted(System.IntPtr value) { } + public void AppendFormatted(System.IntPtr? value) { } + public void AppendFormatted(System.ReadOnlySpan value) { } + public void AppendFormatted(System.ReadOnlySpan value) { } + public void AppendFormatted(sbyte value) { } + public void AppendFormatted(float value) { } + public void AppendFormatted(System.TimeOnly value) { } + public void AppendFormatted(System.TimeOnly? value) { } + public void AppendFormatted(System.TimeSpan value) { } + public void AppendFormatted(System.TimeSpan? value) { } + public void AppendFormatted(ushort value) { } + public void AppendFormatted(uint value) { } + public void AppendFormatted(ulong value) { } + public void AppendFormatted(System.UIntPtr value) { } + public void AppendFormatted(System.UIntPtr? value) { } + public void AppendFormatted(bool? value) { } + public void AppendFormatted(byte? value) { } + public void AppendFormatted(decimal? value) { } + public void AppendFormatted(double? value) { } + public void AppendFormatted(float? value) { } + public void AppendFormatted(int? value) { } + public void AppendFormatted(long? value) { } + public void AppendFormatted(sbyte? value) { } + public void AppendFormatted(short? value) { } + public void AppendFormatted(string? value) { } + public void AppendFormatted(uint? value) { } + public void AppendFormatted(ulong? value) { } + public void AppendFormatted(ushort? value) { } + public void AppendFormatted(byte value, string format) { } + public void AppendFormatted(System.DateOnly value, string format) { } + public void AppendFormatted(System.DateOnly? value, string format) { } + public void AppendFormatted(System.DateTime value, string format) { } + public void AppendFormatted(System.DateTime? value, string format) { } + public void AppendFormatted(System.DateTimeOffset value, string format) { } + public void AppendFormatted(System.DateTimeOffset? value, string format) { } + public void AppendFormatted(decimal value, string format) { } + public void AppendFormatted(double value, string format) { } + public void AppendFormatted(System.Guid value, string format) { } + public void AppendFormatted(System.Guid? value, string format) { } + public void AppendFormatted(short value, string format) { } + public void AppendFormatted(int value, string format) { } + public void AppendFormatted(long value, string format) { } + public void AppendFormatted(System.IntPtr value, string format) { } + public void AppendFormatted(System.IntPtr? value, string format) { } + public void AppendFormatted(sbyte value, string format) { } + public void AppendFormatted(float value, string format) { } + public void AppendFormatted(System.TimeOnly value, string format) { } + public void AppendFormatted(System.TimeOnly? value, string format) { } + public void AppendFormatted(System.TimeSpan value, string format) { } + public void AppendFormatted(System.TimeSpan? value, string format) { } + public void AppendFormatted(ushort value, string format) { } + public void AppendFormatted(uint value, string format) { } + public void AppendFormatted(ulong value, string format) { } + public void AppendFormatted(System.UIntPtr value, string format) { } + public void AppendFormatted(System.UIntPtr? value, string format) { } + public void AppendFormatted(byte? value, string format) { } + public void AppendFormatted(decimal? value, string format) { } + public void AppendFormatted(double? value, string format) { } + public void AppendFormatted(float? value, string format) { } + public void AppendFormatted(int? value, string format) { } + public void AppendFormatted(long? value, string format) { } + public void AppendFormatted(sbyte? value, string format) { } + public void AppendFormatted(short? value, string format) { } + public void AppendFormatted(uint? value, string format) { } + public void AppendFormatted(ulong? value, string format) { } + public void AppendFormatted(ushort? value, string format) { } + public void AppendFormatted(T value) + where T : struct, System.Enum { } + public void AppendFormatted(T? value) + where T : struct, System.Enum { } + public void AppendFormatted(ZeroLog.LogMessage.AppendOperation operation) { } + public void AppendLiteral(string value) { } + } + [System.Runtime.CompilerServices.InterpolatedStringHandler] + [System.Runtime.CompilerServices.IsByRefLike] + public readonly struct FatalInterpolatedStringHandler + { + public FatalInterpolatedStringHandler(int literalLength, int formattedCount, ZeroLog.Log log, out bool isEnabled) { } + public void AppendFormatted(bool value) { } + public void AppendFormatted(byte value) { } + public void AppendFormatted(char value) { } + public void AppendFormatted(System.Char? value) { } + public void AppendFormatted(System.DateOnly value) { } + public void AppendFormatted(System.DateOnly? value) { } + public void AppendFormatted(System.DateTime value) { } + public void AppendFormatted(System.DateTime? value) { } + public void AppendFormatted(System.DateTimeOffset value) { } + public void AppendFormatted(System.DateTimeOffset? value) { } + public void AppendFormatted(decimal value) { } + public void AppendFormatted(double value) { } + public void AppendFormatted(System.Guid value) { } + public void AppendFormatted(System.Guid? value) { } + public void AppendFormatted(short value) { } + public void AppendFormatted(int value) { } + public void AppendFormatted(long value) { } + public void AppendFormatted(System.IntPtr value) { } + public void AppendFormatted(System.IntPtr? value) { } + public void AppendFormatted(System.ReadOnlySpan value) { } + public void AppendFormatted(System.ReadOnlySpan value) { } + public void AppendFormatted(sbyte value) { } + public void AppendFormatted(float value) { } + public void AppendFormatted(System.TimeOnly value) { } + public void AppendFormatted(System.TimeOnly? value) { } + public void AppendFormatted(System.TimeSpan value) { } + public void AppendFormatted(System.TimeSpan? value) { } + public void AppendFormatted(ushort value) { } + public void AppendFormatted(uint value) { } + public void AppendFormatted(ulong value) { } + public void AppendFormatted(System.UIntPtr value) { } + public void AppendFormatted(System.UIntPtr? value) { } + public void AppendFormatted(bool? value) { } + public void AppendFormatted(byte? value) { } + public void AppendFormatted(decimal? value) { } + public void AppendFormatted(double? value) { } + public void AppendFormatted(float? value) { } + public void AppendFormatted(int? value) { } + public void AppendFormatted(long? value) { } + public void AppendFormatted(sbyte? value) { } + public void AppendFormatted(short? value) { } + public void AppendFormatted(string? value) { } + public void AppendFormatted(uint? value) { } + public void AppendFormatted(ulong? value) { } + public void AppendFormatted(ushort? value) { } + public void AppendFormatted(byte value, string format) { } + public void AppendFormatted(System.DateOnly value, string format) { } + public void AppendFormatted(System.DateOnly? value, string format) { } + public void AppendFormatted(System.DateTime value, string format) { } + public void AppendFormatted(System.DateTime? value, string format) { } + public void AppendFormatted(System.DateTimeOffset value, string format) { } + public void AppendFormatted(System.DateTimeOffset? value, string format) { } + public void AppendFormatted(decimal value, string format) { } + public void AppendFormatted(double value, string format) { } + public void AppendFormatted(System.Guid value, string format) { } + public void AppendFormatted(System.Guid? value, string format) { } + public void AppendFormatted(short value, string format) { } + public void AppendFormatted(int value, string format) { } + public void AppendFormatted(long value, string format) { } + public void AppendFormatted(System.IntPtr value, string format) { } + public void AppendFormatted(System.IntPtr? value, string format) { } + public void AppendFormatted(sbyte value, string format) { } + public void AppendFormatted(float value, string format) { } + public void AppendFormatted(System.TimeOnly value, string format) { } + public void AppendFormatted(System.TimeOnly? value, string format) { } + public void AppendFormatted(System.TimeSpan value, string format) { } + public void AppendFormatted(System.TimeSpan? value, string format) { } + public void AppendFormatted(ushort value, string format) { } + public void AppendFormatted(uint value, string format) { } + public void AppendFormatted(ulong value, string format) { } + public void AppendFormatted(System.UIntPtr value, string format) { } + public void AppendFormatted(System.UIntPtr? value, string format) { } + public void AppendFormatted(byte? value, string format) { } + public void AppendFormatted(decimal? value, string format) { } + public void AppendFormatted(double? value, string format) { } + public void AppendFormatted(float? value, string format) { } + public void AppendFormatted(int? value, string format) { } + public void AppendFormatted(long? value, string format) { } + public void AppendFormatted(sbyte? value, string format) { } + public void AppendFormatted(short? value, string format) { } + public void AppendFormatted(uint? value, string format) { } + public void AppendFormatted(ulong? value, string format) { } + public void AppendFormatted(ushort? value, string format) { } + public void AppendFormatted(T value) + where T : struct, System.Enum { } + public void AppendFormatted(T? value) + where T : struct, System.Enum { } + public void AppendFormatted(ZeroLog.LogMessage.AppendOperation operation) { } + public void AppendLiteral(string value) { } + } + [System.Runtime.CompilerServices.InterpolatedStringHandler] + [System.Runtime.CompilerServices.IsByRefLike] + public readonly struct InfoInterpolatedStringHandler + { + public InfoInterpolatedStringHandler(int literalLength, int formattedCount, ZeroLog.Log log, out bool isEnabled) { } + public void AppendFormatted(bool value) { } + public void AppendFormatted(byte value) { } + public void AppendFormatted(char value) { } + public void AppendFormatted(System.Char? value) { } + public void AppendFormatted(System.DateOnly value) { } + public void AppendFormatted(System.DateOnly? value) { } + public void AppendFormatted(System.DateTime value) { } + public void AppendFormatted(System.DateTime? value) { } + public void AppendFormatted(System.DateTimeOffset value) { } + public void AppendFormatted(System.DateTimeOffset? value) { } + public void AppendFormatted(decimal value) { } + public void AppendFormatted(double value) { } + public void AppendFormatted(System.Guid value) { } + public void AppendFormatted(System.Guid? value) { } + public void AppendFormatted(short value) { } + public void AppendFormatted(int value) { } + public void AppendFormatted(long value) { } + public void AppendFormatted(System.IntPtr value) { } + public void AppendFormatted(System.IntPtr? value) { } + public void AppendFormatted(System.ReadOnlySpan value) { } + public void AppendFormatted(System.ReadOnlySpan value) { } + public void AppendFormatted(sbyte value) { } + public void AppendFormatted(float value) { } + public void AppendFormatted(System.TimeOnly value) { } + public void AppendFormatted(System.TimeOnly? value) { } + public void AppendFormatted(System.TimeSpan value) { } + public void AppendFormatted(System.TimeSpan? value) { } + public void AppendFormatted(ushort value) { } + public void AppendFormatted(uint value) { } + public void AppendFormatted(ulong value) { } + public void AppendFormatted(System.UIntPtr value) { } + public void AppendFormatted(System.UIntPtr? value) { } + public void AppendFormatted(bool? value) { } + public void AppendFormatted(byte? value) { } + public void AppendFormatted(decimal? value) { } + public void AppendFormatted(double? value) { } + public void AppendFormatted(float? value) { } + public void AppendFormatted(int? value) { } + public void AppendFormatted(long? value) { } + public void AppendFormatted(sbyte? value) { } + public void AppendFormatted(short? value) { } + public void AppendFormatted(string? value) { } + public void AppendFormatted(uint? value) { } + public void AppendFormatted(ulong? value) { } + public void AppendFormatted(ushort? value) { } + public void AppendFormatted(byte value, string format) { } + public void AppendFormatted(System.DateOnly value, string format) { } + public void AppendFormatted(System.DateOnly? value, string format) { } + public void AppendFormatted(System.DateTime value, string format) { } + public void AppendFormatted(System.DateTime? value, string format) { } + public void AppendFormatted(System.DateTimeOffset value, string format) { } + public void AppendFormatted(System.DateTimeOffset? value, string format) { } + public void AppendFormatted(decimal value, string format) { } + public void AppendFormatted(double value, string format) { } + public void AppendFormatted(System.Guid value, string format) { } + public void AppendFormatted(System.Guid? value, string format) { } + public void AppendFormatted(short value, string format) { } + public void AppendFormatted(int value, string format) { } + public void AppendFormatted(long value, string format) { } + public void AppendFormatted(System.IntPtr value, string format) { } + public void AppendFormatted(System.IntPtr? value, string format) { } + public void AppendFormatted(sbyte value, string format) { } + public void AppendFormatted(float value, string format) { } + public void AppendFormatted(System.TimeOnly value, string format) { } + public void AppendFormatted(System.TimeOnly? value, string format) { } + public void AppendFormatted(System.TimeSpan value, string format) { } + public void AppendFormatted(System.TimeSpan? value, string format) { } + public void AppendFormatted(ushort value, string format) { } + public void AppendFormatted(uint value, string format) { } + public void AppendFormatted(ulong value, string format) { } + public void AppendFormatted(System.UIntPtr value, string format) { } + public void AppendFormatted(System.UIntPtr? value, string format) { } + public void AppendFormatted(byte? value, string format) { } + public void AppendFormatted(decimal? value, string format) { } + public void AppendFormatted(double? value, string format) { } + public void AppendFormatted(float? value, string format) { } + public void AppendFormatted(int? value, string format) { } + public void AppendFormatted(long? value, string format) { } + public void AppendFormatted(sbyte? value, string format) { } + public void AppendFormatted(short? value, string format) { } + public void AppendFormatted(uint? value, string format) { } + public void AppendFormatted(ulong? value, string format) { } + public void AppendFormatted(ushort? value, string format) { } + public void AppendFormatted(T value) + where T : struct, System.Enum { } + public void AppendFormatted(T? value) + where T : struct, System.Enum { } + public void AppendFormatted(ZeroLog.LogMessage.AppendOperation operation) { } + public void AppendLiteral(string value) { } + } + [System.Runtime.CompilerServices.InterpolatedStringHandler] + [System.Runtime.CompilerServices.IsByRefLike] + public readonly struct TraceInterpolatedStringHandler + { + public TraceInterpolatedStringHandler(int literalLength, int formattedCount, ZeroLog.Log log, out bool isEnabled) { } + public void AppendFormatted(bool value) { } + public void AppendFormatted(byte value) { } + public void AppendFormatted(char value) { } + public void AppendFormatted(System.Char? value) { } + public void AppendFormatted(System.DateOnly value) { } + public void AppendFormatted(System.DateOnly? value) { } + public void AppendFormatted(System.DateTime value) { } + public void AppendFormatted(System.DateTime? value) { } + public void AppendFormatted(System.DateTimeOffset value) { } + public void AppendFormatted(System.DateTimeOffset? value) { } + public void AppendFormatted(decimal value) { } + public void AppendFormatted(double value) { } + public void AppendFormatted(System.Guid value) { } + public void AppendFormatted(System.Guid? value) { } + public void AppendFormatted(short value) { } + public void AppendFormatted(int value) { } + public void AppendFormatted(long value) { } + public void AppendFormatted(System.IntPtr value) { } + public void AppendFormatted(System.IntPtr? value) { } + public void AppendFormatted(System.ReadOnlySpan value) { } + public void AppendFormatted(System.ReadOnlySpan value) { } + public void AppendFormatted(sbyte value) { } + public void AppendFormatted(float value) { } + public void AppendFormatted(System.TimeOnly value) { } + public void AppendFormatted(System.TimeOnly? value) { } + public void AppendFormatted(System.TimeSpan value) { } + public void AppendFormatted(System.TimeSpan? value) { } + public void AppendFormatted(ushort value) { } + public void AppendFormatted(uint value) { } + public void AppendFormatted(ulong value) { } + public void AppendFormatted(System.UIntPtr value) { } + public void AppendFormatted(System.UIntPtr? value) { } + public void AppendFormatted(bool? value) { } + public void AppendFormatted(byte? value) { } + public void AppendFormatted(decimal? value) { } + public void AppendFormatted(double? value) { } + public void AppendFormatted(float? value) { } + public void AppendFormatted(int? value) { } + public void AppendFormatted(long? value) { } + public void AppendFormatted(sbyte? value) { } + public void AppendFormatted(short? value) { } + public void AppendFormatted(string? value) { } + public void AppendFormatted(uint? value) { } + public void AppendFormatted(ulong? value) { } + public void AppendFormatted(ushort? value) { } + public void AppendFormatted(byte value, string format) { } + public void AppendFormatted(System.DateOnly value, string format) { } + public void AppendFormatted(System.DateOnly? value, string format) { } + public void AppendFormatted(System.DateTime value, string format) { } + public void AppendFormatted(System.DateTime? value, string format) { } + public void AppendFormatted(System.DateTimeOffset value, string format) { } + public void AppendFormatted(System.DateTimeOffset? value, string format) { } + public void AppendFormatted(decimal value, string format) { } + public void AppendFormatted(double value, string format) { } + public void AppendFormatted(System.Guid value, string format) { } + public void AppendFormatted(System.Guid? value, string format) { } + public void AppendFormatted(short value, string format) { } + public void AppendFormatted(int value, string format) { } + public void AppendFormatted(long value, string format) { } + public void AppendFormatted(System.IntPtr value, string format) { } + public void AppendFormatted(System.IntPtr? value, string format) { } + public void AppendFormatted(sbyte value, string format) { } + public void AppendFormatted(float value, string format) { } + public void AppendFormatted(System.TimeOnly value, string format) { } + public void AppendFormatted(System.TimeOnly? value, string format) { } + public void AppendFormatted(System.TimeSpan value, string format) { } + public void AppendFormatted(System.TimeSpan? value, string format) { } + public void AppendFormatted(ushort value, string format) { } + public void AppendFormatted(uint value, string format) { } + public void AppendFormatted(ulong value, string format) { } + public void AppendFormatted(System.UIntPtr value, string format) { } + public void AppendFormatted(System.UIntPtr? value, string format) { } + public void AppendFormatted(byte? value, string format) { } + public void AppendFormatted(decimal? value, string format) { } + public void AppendFormatted(double? value, string format) { } + public void AppendFormatted(float? value, string format) { } + public void AppendFormatted(int? value, string format) { } + public void AppendFormatted(long? value, string format) { } + public void AppendFormatted(sbyte? value, string format) { } + public void AppendFormatted(short? value, string format) { } + public void AppendFormatted(uint? value, string format) { } + public void AppendFormatted(ulong? value, string format) { } + public void AppendFormatted(ushort? value, string format) { } + public void AppendFormatted(T value) + where T : struct, System.Enum { } + public void AppendFormatted(T? value) + where T : struct, System.Enum { } + public void AppendFormatted(ZeroLog.LogMessage.AppendOperation operation) { } + public void AppendLiteral(string value) { } + } + [System.Runtime.CompilerServices.InterpolatedStringHandler] + [System.Runtime.CompilerServices.IsByRefLike] + public readonly struct WarnInterpolatedStringHandler + { + public WarnInterpolatedStringHandler(int literalLength, int formattedCount, ZeroLog.Log log, out bool isEnabled) { } + public void AppendFormatted(bool value) { } + public void AppendFormatted(byte value) { } + public void AppendFormatted(char value) { } + public void AppendFormatted(System.Char? value) { } + public void AppendFormatted(System.DateOnly value) { } + public void AppendFormatted(System.DateOnly? value) { } + public void AppendFormatted(System.DateTime value) { } + public void AppendFormatted(System.DateTime? value) { } + public void AppendFormatted(System.DateTimeOffset value) { } + public void AppendFormatted(System.DateTimeOffset? value) { } + public void AppendFormatted(decimal value) { } + public void AppendFormatted(double value) { } + public void AppendFormatted(System.Guid value) { } + public void AppendFormatted(System.Guid? value) { } + public void AppendFormatted(short value) { } + public void AppendFormatted(int value) { } + public void AppendFormatted(long value) { } + public void AppendFormatted(System.IntPtr value) { } + public void AppendFormatted(System.IntPtr? value) { } + public void AppendFormatted(System.ReadOnlySpan value) { } + public void AppendFormatted(System.ReadOnlySpan value) { } + public void AppendFormatted(sbyte value) { } + public void AppendFormatted(float value) { } + public void AppendFormatted(System.TimeOnly value) { } + public void AppendFormatted(System.TimeOnly? value) { } + public void AppendFormatted(System.TimeSpan value) { } + public void AppendFormatted(System.TimeSpan? value) { } + public void AppendFormatted(ushort value) { } + public void AppendFormatted(uint value) { } + public void AppendFormatted(ulong value) { } + public void AppendFormatted(System.UIntPtr value) { } + public void AppendFormatted(System.UIntPtr? value) { } + public void AppendFormatted(bool? value) { } + public void AppendFormatted(byte? value) { } + public void AppendFormatted(decimal? value) { } + public void AppendFormatted(double? value) { } + public void AppendFormatted(float? value) { } + public void AppendFormatted(int? value) { } + public void AppendFormatted(long? value) { } + public void AppendFormatted(sbyte? value) { } + public void AppendFormatted(short? value) { } + public void AppendFormatted(string? value) { } + public void AppendFormatted(uint? value) { } + public void AppendFormatted(ulong? value) { } + public void AppendFormatted(ushort? value) { } + public void AppendFormatted(byte value, string format) { } + public void AppendFormatted(System.DateOnly value, string format) { } + public void AppendFormatted(System.DateOnly? value, string format) { } + public void AppendFormatted(System.DateTime value, string format) { } + public void AppendFormatted(System.DateTime? value, string format) { } + public void AppendFormatted(System.DateTimeOffset value, string format) { } + public void AppendFormatted(System.DateTimeOffset? value, string format) { } + public void AppendFormatted(decimal value, string format) { } + public void AppendFormatted(double value, string format) { } + public void AppendFormatted(System.Guid value, string format) { } + public void AppendFormatted(System.Guid? value, string format) { } + public void AppendFormatted(short value, string format) { } + public void AppendFormatted(int value, string format) { } + public void AppendFormatted(long value, string format) { } + public void AppendFormatted(System.IntPtr value, string format) { } + public void AppendFormatted(System.IntPtr? value, string format) { } + public void AppendFormatted(sbyte value, string format) { } + public void AppendFormatted(float value, string format) { } + public void AppendFormatted(System.TimeOnly value, string format) { } + public void AppendFormatted(System.TimeOnly? value, string format) { } + public void AppendFormatted(System.TimeSpan value, string format) { } + public void AppendFormatted(System.TimeSpan? value, string format) { } + public void AppendFormatted(ushort value, string format) { } + public void AppendFormatted(uint value, string format) { } + public void AppendFormatted(ulong value, string format) { } + public void AppendFormatted(System.UIntPtr value, string format) { } + public void AppendFormatted(System.UIntPtr? value, string format) { } + public void AppendFormatted(byte? value, string format) { } + public void AppendFormatted(decimal? value, string format) { } + public void AppendFormatted(double? value, string format) { } + public void AppendFormatted(float? value, string format) { } + public void AppendFormatted(int? value, string format) { } + public void AppendFormatted(long? value, string format) { } + public void AppendFormatted(sbyte? value, string format) { } + public void AppendFormatted(short? value, string format) { } + public void AppendFormatted(uint? value, string format) { } + public void AppendFormatted(ulong? value, string format) { } + public void AppendFormatted(ushort? value, string format) { } + public void AppendFormatted(T value) + where T : struct, System.Enum { } + public void AppendFormatted(T? value) + where T : struct, System.Enum { } + public void AppendFormatted(ZeroLog.LogMessage.AppendOperation operation) { } + public void AppendLiteral(string value) { } + } + } + public enum LogLevel + { + Trace = 0, + Debug = 1, + Info = 2, + Warn = 3, + Error = 4, + Fatal = 5, + None = 6, + } + public sealed class LogManager : System.IDisposable + { + public static ZeroLog.Configuration.ZeroLogConfiguration? Configuration { get; } + public void Dispose() { } + public static ZeroLog.Log GetLogger(string name) { } + public static ZeroLog.Log GetLogger(System.Type type) { } + public static ZeroLog.Log GetLogger() { } + public static System.IDisposable Initialize(ZeroLog.Configuration.ZeroLogConfiguration configuration) { } + public static void RegisterAllEnumsFrom(System.Reflection.Assembly assembly) { } + public static void RegisterEnum(System.Type enumType) { } + public static void RegisterEnum() + where T : struct, System.Enum { } + public static void RegisterUnmanaged(System.Type type) { } + public static void RegisterUnmanaged() + where T : unmanaged, System.ISpanFormattable { } + public static void RegisterUnmanaged(ZeroLog.UnmanagedFormatterDelegate formatter) + where T : unmanaged { } + public static void Shutdown() { } + } + public sealed class LogMessage + { + public System.Exception? Exception { get; } + public ZeroLog.LogLevel Level { get; } + public System.Threading.Thread? Thread { get; } + public System.DateTime Timestamp { get; } + public ZeroLog.LogMessage Append(bool value) { } + public ZeroLog.LogMessage Append(byte value) { } + public ZeroLog.LogMessage Append(char value) { } + public ZeroLog.LogMessage Append(System.Char? value) { } + public ZeroLog.LogMessage Append(System.DateOnly value) { } + public ZeroLog.LogMessage Append(System.DateOnly? value) { } + public ZeroLog.LogMessage Append(System.DateTime value) { } + public ZeroLog.LogMessage Append(System.DateTime? value) { } + public ZeroLog.LogMessage Append(System.DateTimeOffset value) { } + public ZeroLog.LogMessage Append(System.DateTimeOffset? value) { } + public ZeroLog.LogMessage Append(decimal value) { } + public ZeroLog.LogMessage Append(double value) { } + public ZeroLog.LogMessage Append(System.Guid value) { } + public ZeroLog.LogMessage Append(System.Guid? value) { } + public ZeroLog.LogMessage Append(short value) { } + public ZeroLog.LogMessage Append(int value) { } + public ZeroLog.LogMessage Append(long value) { } + public ZeroLog.LogMessage Append(System.IntPtr value) { } + public ZeroLog.LogMessage Append(System.IntPtr? value) { } + public ZeroLog.LogMessage Append(System.ReadOnlySpan value) { } + public ZeroLog.LogMessage Append(System.ReadOnlySpan value) { } + public ZeroLog.LogMessage Append(sbyte value) { } + public ZeroLog.LogMessage Append(float value) { } + public ZeroLog.LogMessage Append(System.TimeOnly value) { } + public ZeroLog.LogMessage Append(System.TimeOnly? value) { } + public ZeroLog.LogMessage Append(System.TimeSpan value) { } + public ZeroLog.LogMessage Append(System.TimeSpan? value) { } + public ZeroLog.LogMessage Append(ushort value) { } + public ZeroLog.LogMessage Append(uint value) { } + public ZeroLog.LogMessage Append(ulong value) { } + public ZeroLog.LogMessage Append(System.UIntPtr value) { } + public ZeroLog.LogMessage Append(System.UIntPtr? value) { } + public ZeroLog.LogMessage Append([System.Runtime.CompilerServices.InterpolatedStringHandlerArgument("")] ZeroLog.LogMessage.AppendInterpolatedStringHandler value) { } + public ZeroLog.LogMessage Append(bool? value) { } + public ZeroLog.LogMessage Append(byte? value) { } + public ZeroLog.LogMessage Append(decimal? value) { } + public ZeroLog.LogMessage Append(double? value) { } + public ZeroLog.LogMessage Append(float? value) { } + public ZeroLog.LogMessage Append(int? value) { } + public ZeroLog.LogMessage Append(long? value) { } + public ZeroLog.LogMessage Append(sbyte? value) { } + public ZeroLog.LogMessage Append(short? value) { } + public ZeroLog.LogMessage Append(string? value) { } + public ZeroLog.LogMessage Append(uint? value) { } + public ZeroLog.LogMessage Append(ulong? value) { } + public ZeroLog.LogMessage Append(ushort? value) { } + public ZeroLog.LogMessage Append(byte value, string format) { } + public ZeroLog.LogMessage Append(System.DateOnly value, string format) { } + public ZeroLog.LogMessage Append(System.DateOnly? value, string format) { } + public ZeroLog.LogMessage Append(System.DateTime value, string format) { } + public ZeroLog.LogMessage Append(System.DateTime? value, string format) { } + public ZeroLog.LogMessage Append(System.DateTimeOffset value, string format) { } + public ZeroLog.LogMessage Append(System.DateTimeOffset? value, string format) { } + public ZeroLog.LogMessage Append(decimal value, string format) { } + public ZeroLog.LogMessage Append(double value, string format) { } + public ZeroLog.LogMessage Append(System.Guid value, string format) { } + public ZeroLog.LogMessage Append(System.Guid? value, string format) { } + public ZeroLog.LogMessage Append(short value, string format) { } + public ZeroLog.LogMessage Append(int value, string format) { } + public ZeroLog.LogMessage Append(long value, string format) { } + public ZeroLog.LogMessage Append(System.IntPtr value, string format) { } + public ZeroLog.LogMessage Append(System.IntPtr? value, string format) { } + public ZeroLog.LogMessage Append(sbyte value, string format) { } + public ZeroLog.LogMessage Append(float value, string format) { } + public ZeroLog.LogMessage Append(System.TimeOnly value, string format) { } + public ZeroLog.LogMessage Append(System.TimeOnly? value, string format) { } + public ZeroLog.LogMessage Append(System.TimeSpan value, string format) { } + public ZeroLog.LogMessage Append(System.TimeSpan? value, string format) { } + public ZeroLog.LogMessage Append(ushort value, string format) { } + public ZeroLog.LogMessage Append(uint value, string format) { } + public ZeroLog.LogMessage Append(ulong value, string format) { } + public ZeroLog.LogMessage Append(System.UIntPtr value, string format) { } + public ZeroLog.LogMessage Append(System.UIntPtr? value, string format) { } + public ZeroLog.LogMessage Append(byte? value, string format) { } + public ZeroLog.LogMessage Append(decimal? value, string format) { } + public ZeroLog.LogMessage Append(double? value, string format) { } + public ZeroLog.LogMessage Append(float? value, string format) { } + public ZeroLog.LogMessage Append(int? value, string format) { } + public ZeroLog.LogMessage Append(long? value, string format) { } + public ZeroLog.LogMessage Append(sbyte? value, string format) { } + public ZeroLog.LogMessage Append(short? value, string format) { } + public ZeroLog.LogMessage Append(uint? value, string format) { } + public ZeroLog.LogMessage Append(ulong? value, string format) { } + public ZeroLog.LogMessage Append(ushort? value, string format) { } + public ZeroLog.LogMessage AppendEnum(T value) + where T : struct, System.Enum { } + public ZeroLog.LogMessage AppendEnum(T? value) + where T : struct, System.Enum { } + public ZeroLog.LogMessage AppendKeyValue(string key, bool value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, byte value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, char value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.Char? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.DateOnly value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.DateOnly? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.DateTime value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.DateTime? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.DateTimeOffset value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.DateTimeOffset? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, decimal value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, double value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.Guid value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.Guid? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, short value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, int value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, long value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.IntPtr value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.IntPtr? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.ReadOnlySpan value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.ReadOnlySpan value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, sbyte value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, float value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.TimeOnly value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.TimeOnly? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.TimeSpan value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.TimeSpan? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, ushort value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, uint value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, ulong value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.UIntPtr value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, System.UIntPtr? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, bool? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, byte? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, decimal? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, double? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, float? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, int? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, long? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, sbyte? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, short? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, string? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, uint? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, ulong? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, ushort? value) { } + public ZeroLog.LogMessage AppendKeyValue(string key, T value) + where T : struct, System.Enum { } + public ZeroLog.LogMessage AppendKeyValue(string key, T? value) + where T : struct, System.Enum { } + public ZeroLog.LogMessage AppendUnmanaged(T value, string? format = null) + where T : unmanaged { } + public ZeroLog.LogMessage AppendUnmanaged(ref T value, string? format = null) + where T : unmanaged { } + public ZeroLog.LogMessage AppendUnmanaged(T? value, string? format = null) + where T : unmanaged { } + public ZeroLog.LogMessage AppendUnmanaged(ref T? value, string? format = null) + where T : unmanaged { } + public void Log() { } + public override string ToString() { } + public ZeroLog.LogMessage WithException(System.Exception? exception) { } + public static ZeroLog.LogMessage CreateTestMessage(ZeroLog.LogLevel level, int bufferSize, int stringCapacity) { } + [System.Runtime.CompilerServices.InterpolatedStringHandler] + [System.Runtime.CompilerServices.IsByRefLike] + public readonly struct AppendInterpolatedStringHandler + { + public AppendInterpolatedStringHandler(int literalLength, int formattedCount, ZeroLog.LogMessage message) { } + public void AppendFormatted(bool value) { } + public void AppendFormatted(byte value) { } + public void AppendFormatted(char value) { } + public void AppendFormatted(System.Char? value) { } + public void AppendFormatted(System.DateOnly value) { } + public void AppendFormatted(System.DateOnly? value) { } + public void AppendFormatted(System.DateTime value) { } + public void AppendFormatted(System.DateTime? value) { } + public void AppendFormatted(System.DateTimeOffset value) { } + public void AppendFormatted(System.DateTimeOffset? value) { } + public void AppendFormatted(decimal value) { } + public void AppendFormatted(double value) { } + public void AppendFormatted(System.Guid value) { } + public void AppendFormatted(System.Guid? value) { } + public void AppendFormatted(short value) { } + public void AppendFormatted(int value) { } + public void AppendFormatted(long value) { } + public void AppendFormatted(System.IntPtr value) { } + public void AppendFormatted(System.IntPtr? value) { } + public void AppendFormatted(System.ReadOnlySpan value) { } + public void AppendFormatted(System.ReadOnlySpan value) { } + public void AppendFormatted(sbyte value) { } + public void AppendFormatted(float value) { } + public void AppendFormatted(System.TimeOnly value) { } + public void AppendFormatted(System.TimeOnly? value) { } + public void AppendFormatted(System.TimeSpan value) { } + public void AppendFormatted(System.TimeSpan? value) { } + public void AppendFormatted(ushort value) { } + public void AppendFormatted(uint value) { } + public void AppendFormatted(ulong value) { } + public void AppendFormatted(System.UIntPtr value) { } + public void AppendFormatted(System.UIntPtr? value) { } + public void AppendFormatted(bool? value) { } + public void AppendFormatted(byte? value) { } + public void AppendFormatted(decimal? value) { } + public void AppendFormatted(double? value) { } + public void AppendFormatted(float? value) { } + public void AppendFormatted(int? value) { } + public void AppendFormatted(long? value) { } + public void AppendFormatted(sbyte? value) { } + public void AppendFormatted(short? value) { } + public void AppendFormatted(string? value) { } + public void AppendFormatted(uint? value) { } + public void AppendFormatted(ulong? value) { } + public void AppendFormatted(ushort? value) { } + public void AppendFormatted(byte value, string format) { } + public void AppendFormatted(System.DateOnly value, string format) { } + public void AppendFormatted(System.DateOnly? value, string format) { } + public void AppendFormatted(System.DateTime value, string format) { } + public void AppendFormatted(System.DateTime? value, string format) { } + public void AppendFormatted(System.DateTimeOffset value, string format) { } + public void AppendFormatted(System.DateTimeOffset? value, string format) { } + public void AppendFormatted(decimal value, string format) { } + public void AppendFormatted(double value, string format) { } + public void AppendFormatted(System.Guid value, string format) { } + public void AppendFormatted(System.Guid? value, string format) { } + public void AppendFormatted(short value, string format) { } + public void AppendFormatted(int value, string format) { } + public void AppendFormatted(long value, string format) { } + public void AppendFormatted(System.IntPtr value, string format) { } + public void AppendFormatted(System.IntPtr? value, string format) { } + public void AppendFormatted(sbyte value, string format) { } + public void AppendFormatted(float value, string format) { } + public void AppendFormatted(System.TimeOnly value, string format) { } + public void AppendFormatted(System.TimeOnly? value, string format) { } + public void AppendFormatted(System.TimeSpan value, string format) { } + public void AppendFormatted(System.TimeSpan? value, string format) { } + public void AppendFormatted(ushort value, string format) { } + public void AppendFormatted(uint value, string format) { } + public void AppendFormatted(ulong value, string format) { } + public void AppendFormatted(System.UIntPtr value, string format) { } + public void AppendFormatted(System.UIntPtr? value, string format) { } + public void AppendFormatted(byte? value, string format) { } + public void AppendFormatted(decimal? value, string format) { } + public void AppendFormatted(double? value, string format) { } + public void AppendFormatted(float? value, string format) { } + public void AppendFormatted(int? value, string format) { } + public void AppendFormatted(long? value, string format) { } + public void AppendFormatted(sbyte? value, string format) { } + public void AppendFormatted(short? value, string format) { } + public void AppendFormatted(uint? value, string format) { } + public void AppendFormatted(ulong? value, string format) { } + public void AppendFormatted(ushort? value, string format) { } + public void AppendFormatted(T value) + where T : struct, System.Enum { } + public void AppendFormatted(T? value) + where T : struct, System.Enum { } + public void AppendFormatted(ZeroLog.LogMessage.AppendOperation operation) { } + public void AppendLiteral(string value) { } + } + public readonly struct AppendOperation + { + public AppendOperation(T? value, System.Action appendAction) { } + public System.Action? AppendAction { get; } + public T Value { get; } + public override string ToString() { } + } + } + public delegate bool UnmanagedFormatterDelegate(ref T value, System.Span destination, out int charsWritten, System.ReadOnlySpan format); +} \ No newline at end of file diff --git a/src/ZeroLog.Tests/Support/AssertExtensions.cs b/src/ZeroLog.Tests/Support/AssertExtensions.cs index 10e7b2a..5bffecb 100644 --- a/src/ZeroLog.Tests/Support/AssertExtensions.cs +++ b/src/ZeroLog.Tests/Support/AssertExtensions.cs @@ -65,9 +65,9 @@ public static void ShouldBeEquivalentTo(this IEnumerable? actual, IEnumera => Assert.That(actual, Is.EquivalentTo(expected)); public static void ShouldEndWith(this string? actual, string expected) - => StringAssert.EndsWith(expected, actual); + => Assert.That(actual, Does.EndWith(expected)); - public static void ShouldBeLessThanOrEqualTo(this T? actual, T expected) + public static void ShouldBeLessThanOrEqualTo(this T? actual, T expected) where T : notnull => Assert.That(actual, Is.LessThanOrEqualTo(expected)); public static T ShouldHaveSingleItem(this IEnumerable? actual) diff --git a/src/ZeroLog.Tests/ZeroLog.Tests.csproj b/src/ZeroLog.Tests/ZeroLog.Tests.csproj index a7d16ec..6de628d 100644 --- a/src/ZeroLog.Tests/ZeroLog.Tests.csproj +++ b/src/ZeroLog.Tests/ZeroLog.Tests.csproj @@ -1,6 +1,6 @@  - net7.0;net6.0 + net8.0;net7.0;net6.0 $(NoWarn);CS8002 @@ -9,13 +9,13 @@ - - - - - - - + + + + + + + diff --git a/src/ZeroLog/ZeroLog.csproj b/src/ZeroLog/ZeroLog.csproj index 55a71af..6f793f8 100644 --- a/src/ZeroLog/ZeroLog.csproj +++ b/src/ZeroLog/ZeroLog.csproj @@ -13,7 +13,7 @@ - +