generated from dailydevops/dotnet-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
498 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace NetEvolve.Logging.XUnit; | ||
|
||
using System; | ||
using Microsoft.Extensions.Logging; | ||
|
||
/// <summary> | ||
/// Represents a logged message, including the timestamp, log level, event ID, message, exception, and scopes. | ||
/// </summary> | ||
/// <param name="Timestamp">Timestamp of the logged message.</param> | ||
/// <param name="LogLevel">LogLevel of the logged message.</param> | ||
/// <param name="EventId">EventId of the logged message.</param> | ||
/// <param name="Message">Logged message.</param> | ||
/// <param name="Exception">Logged exception. (optional)</param> | ||
/// <param name="Scopes">Logged scopes.</param> | ||
public record struct LoggedMessage( | ||
DateTimeOffset Timestamp, | ||
LogLevel LogLevel, | ||
EventId EventId, | ||
string Message, | ||
Exception? Exception, | ||
IReadOnlyCollection<object?> Scopes | ||
); |
5 changes: 4 additions & 1 deletion
5
...NetEvolve.Extensions.Logging.XUnit.csproj → ...ging.XUnit/NetEvolve.Logging.XUnit.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net7.0</TargetFramework> | ||
<TargetFrameworks>$(ProjectTargetFrameworks)</TargetFrameworks> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" /> | ||
<PackageReference Include="Microsoft.Extensions.Logging.Configuration" /> | ||
<PackageReference Include="NetEvolve.Arguments" /> | ||
<PackageReference Include="xunit.extensibility.core" /> | ||
<PackageReference Include="xunit.extensibility.execution" /> | ||
</ItemGroup> | ||
|
||
</Project> |
File renamed without changes.
Oops, something went wrong.