Made changes to allow passing number of frames to be skipped for calc…#8
Made changes to allow passing number of frames to be skipped for calc…#8sonaljain14 wants to merge 6 commits intoserilog-archive:masterfrom
Conversation
…ulation of caller class name, method name and line number. This is to allow proper working with log4net conversion template %C(%M),%line which without this change would return the Log4NetSink(Emit), 0
|
Thanks for the PR! 👍 Definitely in favor of making the behavioral change, but do we need to expose the |
|
Thanks for looking into the PR. We actually came across this scenario in one of our projects. We were developing libraries wherein we have a wrapper over serilog. All the new code we write is going to use serilog along with seq. For a few of the assemblies that we are making we need to give them to a team which has to be integrated into a legacy product which is using log4net (again with a wrapper). for that specific reason I thought of passing the skipFrames as a parameter. |
|
Thanks for the follow-up; I just had a deeper look into this - I think the dynamic stack frame construction and reflection are going to be a pretty big per-event performance hit. Would it work to specify |
Bumps [log4net](https://github.com/apache/logging-log4net) from 2.0.5 to 2.0.10. - [Release notes](https://github.com/apache/logging-log4net/releases) - [Changelog](https://github.com/apache/logging-log4net/blob/master/ReleaseInstructions.txt) - [Commits](https://github.com/apache/logging-log4net/commits/rel/2.0.10) --- updated-dependencies: - dependency-name: log4net dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [log4net](https://github.com/apache/logging-log4net) from 2.0.5 to 2.0.10. - [Release notes](https://github.com/apache/logging-log4net/releases) - [Changelog](https://github.com/apache/logging-log4net/blob/master/ReleaseInstructions.txt) - [Commits](https://github.com/apache/logging-log4net/commits/rel/2.0.10) --- updated-dependencies: - dependency-name: log4net dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
…inks.Log4Net/log4net-2.0.10 Bump log4net from 2.0.5 to 2.0.10 in /src/Serilog.Sinks.Log4Net
…g.Sinks.Log4Net.Sample/log4net-2.0.10 Bump log4net from 2.0.5 to 2.0.10 in /Sample/Serilog.Sinks.Log4Net.Sample
…ulation of caller class name, method name and line number. This is to allow proper working with log4net conversion template %C(%M),%line which without this change would return the Log4NetSink(Emit), 0