GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — #356 Keep the LogImpl frame for location information by FreeAndNil · Pull Request #357 · apache/logging-log4net

Conversation

@FreeAndNil

@FreeAndNil FreeAndNil commented Nov 9, 2026

Copy link
Copy Markdown
Contributor
  • NoInlining and NoOptimization on all 35 logging methods
  • CI builds and tests in Release

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@FreeAndNil
#356 Keep the LogImpl frame for location information
204d768
- NoInlining and NoOptimization on all 35 logging methods
- CI builds and tests in Release
@FreeAndNil FreeAndNil added this to the 3.6.0 milestone Nov 9, 2026
@FreeAndNil
FreeAndNil merged commit ed973ba into master Nov 9, 2026
3 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@FreeAndNil
FreeAndNil deleted the Feature/356-location-info branch November 9, 2026 21:13
This was referenced Nov 12, 2026
Bump log4net from 2.0.15 to 3.6.0 sg-scale/NETworkManager--2022.12.20.0#5
Open
Bump Crc32.NET and 12 others SvenGroot/JumboCore#80
Closed
Bump the nuget-dependencies group with 14 updates SvenGroot/JumboCore#81
Closed
Bump log4net across 9 directories METACMETAHA/sap-wialon-fleet-audit#75
Open
Bump log4net from 3.5.0 to 3.6.0 ParadoxGameConverters/PGCG.commonItems#964
Merged
Bump log4net from 3.5.0 to 3.6.0 afernandes/ConnectionFactory.NET#12
Open
Bump the minor-and-patch group with 1 update digst/OIOSAML.Net#112
Open
Bump log4net from 3.3.1 to 3.6.0 bbtsoftware/AzureDevOpsPolicyConfigurator#255
Open
Bump log4net from 2.0.8 to 3.6.0 devsecops-lab-luis/demo-ghas-multilenguaje#27
Open
Bump csharpier and 19 others guibranco/CrispyWaffle#1077
Closed
Bump the nuget-minor-and-patch group with 1 update filmliga66/drive-mapper#17
Merged
Bump log4net from 3.5.0 to 3.6.0 OPCFoundation/UA-EdgeTranslator#165
Merged
Dependency (dependabot/nuget): Bump log4net from 3.3.0 to 3.6.0 Nevergoodstudy/NETworkManager-macOS#24
Open
Bump log4net from 3.5.0 to 3.6.0 overdrive1708/FastFileReadonly#20
Merged
Dependency (dependabot/nuget): Bump log4net from 3.5.0 to 3.6.0 BornToBeRoot/NETworkManager#3713
Merged
Bump the all-updates group with 6 updates frasermolyneux/demo-manager#102
Merged
Bump log4net from 3.5.0 to 3.6.0 chutch3/kenku#97
Open
Bump the nuget-dependencies group with 14 updates SvenGroot/JumboCore#82
Open
Bump Crc32.NET and 12 others SvenGroot/JumboCore#83
Open
deps: Bump log4net from 3.3.2 to 3.6.0 OliverRetro/WavePlus#62
Open
Bump the runtime-libraries group with 7 updates CreativeCodersTeam/Core#210
Closed
chore: Bump log4net from 3.5.0 to 3.6.0 mdallago/MDLSoft.NHibernate.AspNet#13
Merged
Bump log4net from 3.3.1 to 3.6.0 bNobo/needabreak#176
Open
Bump log4net from 3.5.0 to 3.6.0 filadelfija-cyber/Reposter#6
Open
Bump log4net from 3.5.0 to 3.6.0 agentthink/ua-protocol-bridge#23
Open
Bump log4net from 3.3.2 to 3.6.0 jasonlandreth/GarminR10-BLE-Connector#7
Open
This was referenced Nov 19, 2026
Bump the minor-and-patch group with 4 updates Ed-Fi-Alliance-OSS/ODS-Admin-API#559
Merged
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5265
Open
Bump the dependencies group with 22 updates guibranco/CrispyWaffle#1126
Closed
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5279
Open
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5280
Open
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5281
Open
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5282
Open
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5283
Open
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5284
Open
DEV: Bump log4net from 3.5.0 to 3.6.0 origam/origam#5285
Open
@FreeAndNil

FreeAndNil commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

Implementation plan for #357, kept here for the record. Written up to describe the change as it stands on the branch.

Plan

Keep the LogImpl frame for location information (#356)

Context

Events logged through ILog can lose their location information (%location, %method, %line,
%stacktrace) once the JIT optimizes the logging methods of LogImpl. Seen on Linux x64 with
.NET 10 in a Release build: PatternLayoutTest.TestStackTracePattern fails once the methods reach
tier 1, and always with DOTNET_TieredCompilation=0.

Constraints that shape the design

  • LocationInfo finds the caller by looking for the LogImpl frame on the stack.
  • An optimizing JIT may inline LogImpl.Info and friends, or turn their call to Logger.Log into a
    tail call; either removes the frame.
  • CI built and tested in Debug only, so optimized code never ran there.

Changes

  1. MethodImplOptions.NoInlining | MethodImplOptions.NoOptimization on all 35 logging methods of
    LogImpl.
  2. CI builds and tests in Release, as shipped and as build-release.ps1 tests.
  3. LogImplTest checks by reflection that every logging method carries both options.

One changelog entry in src/changelog/3.6.0.

Verification

  • PatternLayoutTest.TestStackTracePattern in Release with DOTNET_TieredCompilation=0, before and
    after.
  • The full suite in Release on CI, net10 and net462.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 23, 2026
Bump the runtime-libraries group with 7 updates CreativeCodersTeam/Core#213
Open
Bump Crc32.NET and 12 others SvenGroot/JumboCore#84
Open
Bump the minor-version-updates group with 2 updates PxTools/PCAxis.Serializers#224
Open
Bump the minor-version-updates group with 2 updates PxTools/PCAxis.Menu.OracleDatamodelMenu#119
Open
Bump the minor-version-updates group with 2 updates PxTools/PCAxis.Metadata#110
Open
Bump the minor-version-updates group with 2 updates PxTools/PCAxis.Menu.MsSqlDatamodelMenu#117
Open
Bump the minor-version-updates group with 2 updates PxTools/PXWeb.SavedQuery.Oracle#122
Open
Bump the minor-version-updates group with 2 updates PxTools/PCAxis.Core#145
Open
Bump the minor-version-updates group with 13 updates statisticssweden/DataportalXML#78
Open
Bump log4net from 3.5.0 to 3.6.0 mishka1c/mRemoteNX#12
Closed
Bump the dependencies group with 17 updates guibranco/CrispyWaffle#1136
Open
Bump the minor-version-updates group with 2 updates PxTools/PCAxis.Query#119
Open
Bump the minor-version-updates group with 2 updates PxTools/PCAxis.Menu#104
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

3.6.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@FreeAndNil
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.