Git Product home page Git Product logo

Comments (3)

oz123 avatar oz123 commented on August 17, 2024

You'll probably have to write your own class that inherits from the main logger class to implement this.
In this class you'll have to change write_method to update_one and pass this pass a custom formatter which does not create a new document every time it is invoked.

If you really need this feature you can contact me privately. I am currently busy with higher prio projects.

from log4mongo-python.

jorge-lavin avatar jorge-lavin commented on August 17, 2024

@oz123 I may work into this, do you have any contribution policy at this moment?

My main concern is where do you specify the Object Id of the document that you want to the message to be inserted in

from log4mongo-python.

oz123 avatar oz123 commented on August 17, 2024

@LavinJ , if you are already inserting a specific Document, you could also overwrite the _id. MongoDB allows that. I outlined more or less how you should do it your feature in my previous comment. As for a policy:
keep your code pep-8 compatible, and make sure you submit tested code - e.g. with tests. If you do this, I see no reason, as long as your code does not break other things, why your PR should no be accepted.

from log4mongo-python.

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.