-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #312 from serilog/dev
6.0.0 Release
- Loading branch information
Showing
58 changed files
with
2,615 additions
and
3,173 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: Bug report | ||
about: Report a bug and help us to improve Serilog.Sinks.File | ||
title: '' | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
The Serilog maintainers want you to have a great experience using Serilog.Sinks.File, and will happily track down and resolve bugs. We all have limited time, though, so please think through all of the factors that might be involved and include as much useful information as possible 😊. | ||
|
||
ℹ If the problem is caused by a sink or other extension package, please track down the correct repository for that package and create the report there: this tracker is for the **Serilog.Sinks.File** package only. | ||
|
||
**Description** | ||
What's going wrong? | ||
|
||
**Reproduction** | ||
Please provide code samples showing how you're configuring and calling Serilog.Sinks.File to produce the behavior. | ||
|
||
**Expected behavior** | ||
A concise description of what you expected to happen. | ||
|
||
**Relevant package, tooling and runtime versions** | ||
What Serilog.Sinks.File version are you using, on what platform? | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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,4 @@ | ||
contact_links: | ||
- name: Ask for help | ||
url: https://stackoverflow.com/tags/serilog | ||
about: Ask for help on how to use Serilog.Sinks.File |
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,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an improvement to Serilog.Sinks.File | ||
title: '' | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. For example, "I'd like to do _x_ but currently I can't because _y_ [...]". | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any workarounds or alternative solutions you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<LangVersion>latest</LangVersion> | ||
<TreatWarningsAsErrors>True</TreatWarningsAsErrors> | ||
<SignAssembly>true</SignAssembly> | ||
<PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign> | ||
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)assets/Serilog.snk</AssemblyOriginatorKeyFile> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<LangVersion>latest</LangVersion> | ||
</PropertyGroup> | ||
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'"> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
</ItemGroup> | ||
</Project> |
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,7 @@ | ||
<Project> | ||
|
||
<ItemGroup> | ||
<Using Remove="System.Net.Http" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
#!/bin/bash | ||
|
||
set -e | ||
set -e | ||
dotnet --info | ||
dotnet --list-sdks | ||
dotnet restore | ||
|
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,38 +1,27 @@ | ||
using System; | ||
using System.IO; | ||
using Serilog; | ||
using Serilog.Debugging; | ||
|
||
namespace Sample | ||
{ | ||
public class Program | ||
{ | ||
public static void Main(string[] args) | ||
{ | ||
SelfLog.Enable(Console.Out); | ||
SelfLog.Enable(Console.Out); | ||
|
||
var sw = System.Diagnostics.Stopwatch.StartNew(); | ||
var sw = System.Diagnostics.Stopwatch.StartNew(); | ||
|
||
Log.Logger = new LoggerConfiguration() | ||
.WriteTo.File("log.txt") | ||
.CreateLogger(); | ||
Log.Logger = new LoggerConfiguration() | ||
.WriteTo.File("log.txt") | ||
.CreateLogger(); | ||
|
||
for (var i = 0; i < 1000000; ++i) | ||
{ | ||
Log.Information("Hello, file logger!"); | ||
} | ||
for (var i = 0; i < 1000000; ++i) | ||
{ | ||
Log.Information("Hello, file logger!"); | ||
} | ||
|
||
Log.CloseAndFlush(); | ||
Log.CloseAndFlush(); | ||
|
||
sw.Stop(); | ||
sw.Stop(); | ||
|
||
Console.WriteLine($"Elapsed: {sw.ElapsedMilliseconds} ms"); | ||
Console.WriteLine($"Size: {new FileInfo("log.txt").Length}"); | ||
Console.WriteLine($"Elapsed: {sw.ElapsedMilliseconds} ms"); | ||
Console.WriteLine($"Size: {new FileInfo("log.txt").Length}"); | ||
|
||
Console.WriteLine("Press any key to delete the temporary log file..."); | ||
Console.ReadKey(true); | ||
Console.WriteLine("Press any key to delete the temporary log file..."); | ||
Console.ReadKey(true); | ||
|
||
File.Delete("log.txt"); | ||
} | ||
} | ||
} | ||
File.Delete("log.txt"); |
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
Oops, something went wrong.