Welcome |
||||||
Just4log Development
Links Hosted by: Developed with: |
What is Just4log ?Just4Log is a library to enhance dynamically the performance of various logging systems inside a java application. Dynamically because the sourcecode in java is not modified but rather the optimization occurs on the compiled ByteCode files. What logging systems are supported ?(currently) New feature: Automatic inclusion of enter and exit log statments in every method.Starting with version 0.4, Just4log now supports the automatic inclusion of "enter" and "exit" log statment in every method. Where is the trick ?I will transpose in the Java language what Just4log really does at the bytecode level. Take that line of code: for(int i=0; i<500000; i++) { logger.debug(" remember this is a problem with this: " + someLongTaskToExecute()); normalCodeToExecute(); }
This is a typical case where there is a huge loss of performance due to logging,
whether or not you have deactivated the debug mode:
The compiled code will evaluate One common way to alleviate this problem would be: for(int i=0; i<500000; i++) { if (logger.isDebugEnabled()) { logger.debug(" remember this is a problem with this: " + someLongTaskToExecute()); } normalCodeToExecute(); }
I don't think this is satisfying because Logging/comments should definitely not obfuscate
the rest of the code (even if considered as integral parts of the code).
I didn't want to use a preprocessor. ( Remember: Preprocessors are not Java)
So I decided a postprocessor would do the trick, thus was born Just4Log.
Just4log simply adds a How to use it ?Just4Log offers various ways to optimize your bytecode.
Just4Log can work on two different kind of files:
How much does it cost ?Just4log is distributed under the Apache license and thus is free, and open sourced. This means that you have access to the source code, modify it and redistribute it freely. If you want you can also make your contribution public... Please contact me. Beware that it comes with NO WARRANTY of reliability, merchantability and so on. If it turns out it wasted your software, don't complain... Please backup your code before using Just4log. However you can submit a bug request. I'll try to maintain this software as much as possible. |
|