Giter Site home page Giter Site logo

Comments (6)

tclancy avatar tclancy commented on June 30, 2024 1

That would work, it just wouldn't suit our use case.

I just realized that the silent flag hasn't yet been published, is that something that's going to happen soon by any chance?

Argh, I will try to do that as soon as I can; I've just switched to a new laptop so it won't be until next week, but if you don't see it by Friday, please ping me here.

from django-request-logging.

tclancy avatar tclancy commented on June 30, 2024 1

I haven't forgotten about this, just a crazy week.

from django-request-logging.

tclancy avatar tclancy commented on June 30, 2024

That definitely makes sense, we have a few endpoints we aren't particularly interested in or are only interested in if they error, so maybe instead of a hard true/ false the decorator could accept a condition or lambda just to make this even more fun for you to implement?

I can certainly see users who only want to use the package in certain cases but for backwards-compatibility the default would still need to be everything, yeah.

from django-request-logging.

bradykieffer avatar bradykieffer commented on June 30, 2024

@tclancy what about instead of a true false in the setting we made it an enum / well formed string, something like:

REQUEST_LOGGING_DEFAULT_OPT_IN_LEVEL: str = "ALL" # Default value, opt in to logging all requests

Where it could also be something like ERRORS, NONE, etc. I don't suspect that will break anything.

EDIT: (as a side note, I'm not opposed to implementing a lambda, I'm just wondering what could be the easiest thing to use / what level of sophistication would be needed from the get go)

Also as a side note, I just realized that the silent flag hasn't yet been published, is that something that's going to happen soon by any chance?

from django-request-logging.

bradykieffer avatar bradykieffer commented on June 30, 2024

May as well get it to suit your use case + mine so it's more immediately useful 😄

from django-request-logging.

bradykieffer avatar bradykieffer commented on June 30, 2024

@tclancy I also haven't forgotten, I just put up a PR for this: #103

from django-request-logging.

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.