Skip to content

Reduce heap allocation of the default log message formatting logic in the FileLogger.Log #42

Reduce heap allocation of the default log message formatting logic in the FileLogger.Log

Reduce heap allocation of the default log message formatting logic in the FileLogger.Log #42

Re-run triggered November 18, 2024 07:06
Status Success
Total duration 42s
Artifacts

dotnet-test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

21 warnings
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-dotnet@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build: test/NReco.Logging.Tests/FileProviderTests.cs#L27
Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013)
build: test/NReco.Logging.Tests/FileProviderTests.cs#L35
Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013)
build: test/NReco.Logging.Tests/FileProviderTests.cs#L27
Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013)
build: test/NReco.Logging.Tests/FileProviderTests.cs#L35
Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013)
build: test/NReco.Logging.Tests/FileProviderTests.cs#L271
Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)
build: test/NReco.Logging.Tests/FileProviderTests.cs#L514
Do not use Assert.False() to check for substrings. Use Assert.DoesNotContain instead. (https://xunit.net/xunit.analyzers/rules/xUnit2009)
build: test/NReco.Logging.Tests/FileProviderTests.cs#L514
Do not use Assert.False() to check for substrings. Use Assert.DoesNotContain instead. (https://xunit.net/xunit.analyzers/rules/xUnit2009)
build: test/NReco.Logging.Tests/FileProviderTests.cs#L483
Test methods should not use blocking task operations, as they can cause deadlocks. Use an async test method and await instead. (https://xunit.net/xunit.analyzers/rules/xUnit1031)
build: test/NReco.Logging.Tests/FileProviderTests.cs#L27
Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013)
build: test/NReco.Logging.Tests/FileProviderTests.cs#L35
Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013)
build: src/NReco.Logging.File/Extensions/DateTimeExtensions.cs#L6
Missing XML comment for publicly visible type or member 'DateTimeExtensions'
build: src/NReco.Logging.File/Extensions/DateTimeExtensions.cs#L7
Missing XML comment for publicly visible type or member 'DateTimeExtensions.GetFormattedLength(DateTime)'
build: src/NReco.Logging.File/Extensions/DateTimeExtensions.cs#L75
Missing XML comment for publicly visible type or member 'DateTimeExtensions.TryFormatO(DateTime, Span<char>, out int)'
build: src/NReco.Logging.File/Extensions/IntExtensions.cs#L6
Missing XML comment for publicly visible type or member 'IntExtensions'
build: src/NReco.Logging.File/Extensions/IntExtensions.cs#L7
Missing XML comment for publicly visible type or member 'IntExtensions.GetFormattedLength(int)'
build: src/NReco.Logging.File/FileLogger.cs#L31
Missing XML comment for publicly visible type or member 'FileLogger.FileLogger(string, FileLoggerProvider)'
build: src/NReco.Logging.File/FileLogger.cs#L35
Missing XML comment for publicly visible type or member 'FileLogger.BeginScope<TState>(TState)'
build: src/NReco.Logging.File/FileLogger.cs#L39
Missing XML comment for publicly visible type or member 'FileLogger.IsEnabled(LogLevel)'
build: src/NReco.Logging.File/FileLogger.cs#L56
Missing XML comment for publicly visible type or member 'FileLogger.Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, string>)'
build: src/NReco.Logging.File/FileLoggerExtensions.cs#L27
Missing XML comment for publicly visible type or member 'FileLoggerExtensions'