esotericsoftware / minlog Goto Github PK
View Code? Open in Web Editor NEWMinimal overhead Java logging
License: BSD 3-Clause "New" or "Revised" License
Minimal overhead Java logging
License: BSD 3-Clause "New" or "Revised" License
Maven Central requires all published artifacts to be signed using PGP. If a publisher provides their key ID to PGP keys map then end users can use the Verify PGP signatures plugin to validate that the artifact has not been altered or replaced as part of a supply-chain attack.
Hi!
First of all, Thank you for your library and work!
I noticed that my program can have mani-fold (I've noticed ~10x) decrease in throughput if I have Log.NONE()
in the main (in contrast to Log.TRACE()
), which is very unexpected.
It's quite a bare bone project with no dependencies except for this library vendored as part of source.
The link to the source: https://github.com/ulugbekna/CS451-2021-project/tree/fix-fifo
Reproduction steps:
> mkdir stress_test_log_trace && template_java/build.sh && timeout 120 python tools/stress.py -r template_java/run.sh -t fifo -l stress_test_log_trace/ -p 10 -m 10000
> # see number of events (the line count) in files stress_test_log_none/*.output - the more the better
> # change `Log.TRACE()` to `Log.NONE()`
> mkdir stress_test_log_none && template_java/build.sh && timeout 120 python tools/stress.py -r template_java/run.sh -t fifo -l stress_test_log_none/ -p 10 -m 10000
> # observe how the line count _significantly_ dropped in `stress_test_log_none/*.output` files compared to `stress_test_log_trace/*.output` files
javac version: javac 11.0.12
In the repo, the license.txt is a 3-clause BSD license. The pom.xml refers to this as "New BSD License" (which is ok, as that is an alternative name for "The BSD 3-Clause License"), but the link points to The BSD 2-Clause License.
I'd propose to fix this by making the pom.xml read:
<license>
<name>The BSD 3-Clause License</name>
<url>http://opensource.org/licenses/BSD-3-Clause</url>
<distribution>repo</distribution>
</license>
My android gradle
i got this error first :
GPBI: {"kind":"error","text":"Error converting bytecode to dex:\nCause: com.android.dex.DexException: Multiple dex files define Lcom/esotericsoftware/minlog/Log$Logger;","sources":[{}],"original":"UNEXPECTED TOP-LEVEL EXCEPTION:\ncom.android.dex.DexException: Multiple dex files define Lcom/esotericsoftware/minlog/Log$Logger;\n\tat com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)\n\tat com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)\n\tat com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)\n\tat com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)\n\tat com.android.dx.merge.DexMerger.merge(DexMerger.java:189)\n\tat com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:502)\n\tat com.android.dx.command.dexer.Main.runMonoDex(Main.java:334)\n\tat com.android.dx.command.dexer.Main.run(Main.java:277)\n\tat com.android.dx.command.dexer.Main.main(Main.java:245)\n\tat com.android.dx.command.Main.main(Main.java:106)\n","tool":"Dex"}
i change this of my android build.gradle
defaultConfig {
applicationId "com.nzt.mwa"
minSdkVersion 9
targetSdkVersion 20
versionCode 1
versionName "1.0"
multiDexEnabled true //here !!
}
Now new error ๐ฅ
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/esotericsoftware/minlog/Log$Logger.class
Any idea ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.