Giter VIP home page Giter VIP logo

Comments (9)

mattjbrooksii avatar mattjbrooksii commented on June 8, 2024 1

@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.

wunki avatar wunki commented on June 8, 2024 1

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.

mattjbrooksii avatar mattjbrooksii commented on June 8, 2024

@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.

wunki avatar wunki commented on June 8, 2024

@mattjbrooksii are you able to give us an ETA for this?

from stackify-api-dotnet.

mattjbrooksii avatar mattjbrooksii commented on June 8, 2024

@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.

wunki avatar wunki commented on June 8, 2024

@mattjbrooksii any updates on the above?

from stackify-api-dotnet.

mattjbrooksii avatar mattjbrooksii commented on June 8, 2024

@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.

mattjbrooksii avatar mattjbrooksii commented on June 8, 2024

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.

wunki avatar wunki commented on June 8, 2024

Thank you for quickly resolving this. It's running in production for us and working as expected. 🙏

from stackify-api-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.