Comments (9)
@wunki I can't say for certain as we have a few client issues we are working on at the moment. But my goal is to get a working fix sometime next week. Depending on the complexity, this is subject to change.
Thank you for your patience and understanding
from stackify-api-dotnet.
Hi @mattjbrooksii, this is how we set some logging context currently:
log4net.LogicalThreadContext.Properties["user-id"] = "foo";
var appender = new StackifyAppender()
{
Threshold = Level.All,
Name = "StackifyAppender",
logicalThreadContextKeys = "user-id",
globalContextKeys = "pid"
};
We add the logging context through a custom filter:
services.AddMvc(config => {
config.Filters.Add(new AuthLoggingFilter());
});
Let me know if you need to know anything else. Thank you!
from stackify-api-dotnet.
@dmarlow Currently only the .Net FullFramework build of StackifyLib supports log4net.ThreadLogicalContext as there is a breaking change in the api for getting the CallContext in .Net Core.
I will create a work item for us to add this functionality to .Net Core build of StackifyLib
from stackify-api-dotnet.
@mattjbrooksii are you able to give us an ETA for this?
from stackify-api-dotnet.
@dmarlow Would you be willing to provide a sample of the contextObject properties you are trying to use in your project?
This will help me confirm my tests.
from stackify-api-dotnet.
@mattjbrooksii any updates on the above?
from stackify-api-dotnet.
@wunki StackifyLib.log4net 2.1.5 is now available. Please update your version as soon as you can and let me know if you have anymore issues.
from stackify-api-dotnet.
Going to mark this as closed as the issue has been fixed and deployed. If you are still having issues or have any other concerns feel free to make a new issue.
Cheers!
from stackify-api-dotnet.
Thank you for quickly resolving this. It's running in production for us and working as expected. 🙏
from stackify-api-dotnet.
Related Issues (20)
- Cache reflection lookup for TransactionID in Net Core logs
- Web Monitors
- CoreLogger should add template parameters as searchable metadata
- PII Leak concern - GDPR HOT 5
- NLog target does not capture Properties HOT 3
- Question: use NLog or log4net? HOT 1
- Wrong server name on .net core HOT 2
- ASP.NET Core 2 support - ILoggingBuilder extension HOT 1
- StackifyLib.Config.LoadSettings overrides any explicit ApiKey, AppName, or Environment set programmatically
- App crash with ASP.NET Core HOT 1
- Make ProfileTracer support non-wrapped calls for Azure WebJobs HOT 3
- Why didn't you separate the packages? HOT 1
- Need support of MappedDiagnosticsLogicalContext instead of CallContext HOT 1
- RequestTracerMiddleware Sending 200 response when Exception thrown HOT 8
- Configuring proxy with .NetCore2.1 HOT 3
- Upgrading from 2.1.0 breaks aspnet_merge HOT 3
- Synchronous Task.WaitAll() in LoqQueue causes async/await performance problems in .NET Core
- What does #errorgoverned do? HOT 3
- Support ILogger.BeginScope HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stackify-api-dotnet.