GithubHelp home page GithubHelp logo

improve logging system about spoon HOT 8 CLOSED

inria avatar inria commented on July 19, 2024
improve logging system

from spoon.

Comments (8)

pschichtel avatar pschichtel commented on July 19, 2024

I don't know how exactly they're doing it, but the logging in the Netty Project is pretty well done. I think they're using SLF4J with Logback as the Backend. By default they don't log a thing.

from spoon.

monperrus avatar monperrus commented on July 19, 2024

There is already such a system, see spoon.processing.Severity and methods report/print in StandardEnvironment. They use log4j eventually. So there is also an interplay with the default log4j configuration (already discussed in another thread).

There is definitely room for improvement, PR welcome.

from spoon.

swolf91 avatar swolf91 commented on July 19, 2024

What about replacing log4j with log4j2? I read about it last week. It's much faster. For example because strings will just be formatted if it's needed.
So logger.info("I'm a message with a const: " + 3.14f) will be replaced with logger.info("I'm a message with a const: {}", 3.14f);
So the strings won't be concatenated unless the log level has to be processed.

from spoon.

monperrus avatar monperrus commented on July 19, 2024

I suggest to close this generic and old pull request.

from spoon.

swolf91 avatar swolf91 commented on July 19, 2024

@monperrus This isn't a pull request!?
Actually it should be a discussion. But nobody feels to be addressed by this issue.

I actually tried out to replace log4j with log4j2 see the work here
But I didn't find a good configuration yet.

from spoon.

monperrus avatar monperrus commented on July 19, 2024

The idea is not to keep unactive open issues, it hampers issue management.

I propose to close this one, and we'll discuss your PR when you feel it's ready for discussion.

from spoon.

swolf91 avatar swolf91 commented on July 19, 2024

lol? I don't get it. Why don't you want to discuss something without a PR? There are more possibilities than replacing log4j with log4j2. Also that doesn't close this issue because a better logging system isn't simply done with another logging engine. So the PR wouldn't be enough.

And that issue is just unactive because nobody writes something about the actual topic. I don't know why you (your whole team; not you in person) ignore this.

from spoon.

monperrus avatar monperrus commented on July 19, 2024

No activity for 3 months. Closing the issue.

from spoon.

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.