Comments (8)
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.
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.
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.
I suggest to close this generic and old pull request.
from spoon.
@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.
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.
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.
No activity for 3 months. Closing the issue.
from spoon.
Related Issues (20)
- [Bug]: Spoon classes consuming much memory HOT 2
- [Bug]: A null pointer exception occurred in build model HOT 1
- [Bug]: StackOverflowError occurred in CtExecutableReference.getExecutableDeclaration HOT 5
- [Bug]: Not allowed javaletter or keyword in identifier found HOT 5
- Move or delete spoon testing package from src/main HOT 1
- Delete old unused javadoc package HOT 2
- [Bug]: Under multithreading, using the isOverriding method will lead to incorrect results of the getElements method
- [Bug]: How to correctly recognize the signature of invoked methods in lambda expression?
- Java Compatibility with Older Versions of Spoon HOT 1
- [Bug]: CtReferenceImpl.isSpecialType throws an exception
- [Bug]: Bug adding comment in AST of lambda HOT 2
- Update a method calls reference
- java 22 HOT 1
- [Bug]: Control Flow graph missing edge for implicit default case in switch
- [Bug]: Control Flow Graph doesn't handle cases with multiple expressions
- Spotless for imports HOT 2
- [Bug]: Spoon inserts incorrect break in enhanced switch block
- [Feature Request]: Minimize Parens in `DefaultJavaPrettyPrinter` should use operator precedence (`(a == b) || (b == c)` could be `a == b || b == c`) HOT 2
- [Bug]: Javadoc of class missing HOT 1
- improve reproducible build architecture for Spoon HOT 2
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 spoon.