Akka.Logger.Serilog
                                
                                 Akka.Logger.Serilog copied to clipboard
                                
                                    Akka.Logger.Serilog copied to clipboard
                            
                            
                            
                        Bump Serilog from 2.12.0 to 3.1.1
Bumps Serilog from 2.12.0 to 3.1.1.
Release notes
Sourced from Serilog's releases.
v3.1.1
- #1977 - don't stack overflow when disposing
ReusableStringWriterwith large renderings (@nblumhardt)This is a bugfix for release 3.1.0.
v3.1.0
- #1935 - remove
CHANGES.md(@sungam3r)- #1936, #1922 -
README.mdupdates (@nblumhardt)- #1942 - remove redundant
GetTypeInfo()calls (@SimonCropp)- #1947 - message template caching performance improvements (
@epeshk)- #1948 - reduce allocations in
Logger.Write()(@epeshk)- #1955 breaking - collect and propagate
Activity.Current.TraceIdandSpanIdautomatically inLogger.Write()(@nblumhardt)- #1964 - don't cache reusable string writers with large buffer sizes (
@Jakimar)- #1969 -
README.mdupdates (@bartelink)- #1971 - drop test coverage for unsupported .NET Core versions (
@bartelink)Built-in trace and span id support
This release adds two new first-class properties to
LogEvent:TraceIdandSpanId. These are set automatically inLogger.Write()to the corresponding property values fromSystem.Diagnostics.Activity.Current.The major benefit of this change is that sinks, once updated, can reliably propagate trace and span ids through to back-ends that support them (in much the same way that first-class timestamps, messages, levels, and exceptions are used today).
The sinks maintained under
serilog/serilog, along with formatting helpers such as Serilog.Formatting.Compact and Serilog.Expressions, are already compatible with this change or have pending releases that add compatibility.Breaking change
Trace and span id collection includes support for
{TraceId}and{SpanId}placeholders in output templates (commonly used when formatting text log files). Where previously these names resolved to user-defined properties, they now resolve to the built-inLogEvent.TraceIdandLogEvent.SpanIdvalues, respectively.Impact is expected to be low, because the trace and span id values in any user-added properties are likely to be identical to the built-in ones.
v3.0.1
- #1926 - fix
JsonFormatteroutput forrenderMessage = true(@nblumhardt)v3.0.0
What's new in 3.0.0?
Target framework changes - Serilog no longer targets
netstandard1.xor .NET Framework versions earlier than .NET 4.6.2. Users on affected frameworks should continue to target Serilog 2.12.x.Removed obsolete APIs - Many deprecated/obsolete types and functions have been removed. Notably,
JsonFormattercan no longer be subclassed (either port toJsonValueFormatter, use Serilog.Expressions, or copy the originalJsonFormattercode into your project).Added APIs -
LevelAlias.Offis now provided as an equivalent to Microsoft.Extensions.Logging'sLogLevel.Off;Destructure.AsDictionary<T>()can now be used to mark dictionary types.Fewer allocations on many hot paths - A lot of work has gone into avoiding heap allocations wherever possible.
Changes
- Change exception message by
@sungam3rin serilog/serilog#1762- Avoided
IEnumeratorallocation (#1769) by@igor84in serilog/serilog#1770- Avoid iterator allocations when working with SequenceValue by
@sungam3rin serilog/serilog#1785- Add API approval test by
@sungam3rin serilog/serilog#1783
... (truncated)
Commits
- 999d686Merge pull request #1978 from serilog/dev
- 16739f0Don't stack overflow when disposing- ReusableStringWriter(#1977)
- ca4efdaDev version bump [skip ci]
- 765a046Merge pull request #1975 from serilog/dev
- e37837echore(docs): Markdown housekeeping (#1969)
- a493ffdchore: Drop test coverage for out of support .NET Core vers (#1971)
- e059e9fMake- StringBuilderCapacityThresholdthe even power of two that was intended
- 8d0e2edReusableStringWriter: Dispose instance with too big buffer (#1964)
- 88f76a8By reference string comparison in template cache (#1947)
- d6e80e6Removed temporary array allocations for properties (#1948)
- Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- @dependabot rebasewill rebase this PR
- @dependabot recreatewill recreate this PR, overwriting any edits that have been made to it
- @dependabot mergewill merge this PR after your CI passes on it
- @dependabot squash and mergewill squash and merge this PR after your CI passes on it
- @dependabot cancel mergewill cancel a previously requested merge and block automerging
- @dependabot reopenwill reopen this PR if it is closed
- @dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- @dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency
- @dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- @dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- @dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
@dependabot rebase