Apache log4j that I am using in Java project.lts very useful and wecan use in enterprise application Review collected by and hosted on G2.com.
In other languages how to implement just figured it out. Review collected by and hosted on G2.com.
It's predefined feature. Proper way of logging activities Review collected by and hosted on G2.com.
Could have automated to catch the exception by itself on adding the annotation alone Review collected by and hosted on G2.com.
It is very easy to configure and we can focus on other parts of our project without even worrying about logging Review collected by and hosted on G2.com.
I don't think there is any downside as such Review collected by and hosted on G2.com.
I like the configurable approach for handling the logs which can be customized on runtime. I like that I can change the log format, level and destination of the logs very easily. Review collected by and hosted on G2.com.
Need to work little more on the connector side like publishing logs to elastic in a more configurable way. There are other open libraries to handle it but can be included in this package itself. Review collected by and hosted on G2.com.
Best part of Apache log4j is it's ease of use . This was the first logger I used and started my career with. Level of logging and easy to implement are the keys which makes log4j standout from other loggers. You can create logs bifurcation even at very low level. This has helped me a lot in tracing issues on production and live applications on larger scale.
Mentioning few of the way I used to log things from Apache log4j :
. Creating log folder structure daily based on the current date and default format .
. Creating file level log for logging the logs from particular application code resource file.
The above bifurcations have helped me a lot and also learned many different ways for looking and backtracking the problems and issues in the application. Review collected by and hosted on G2.com.
As of now I haven't came up with such thing. Happy logging !!!
But one thing I like to mention here is that, little workaround on documentation can help new learner understand this best utility more clearly. Review collected by and hosted on G2.com.
Easy implementation of log4j in any of project be it core java or spring project. It gives extensive options for logging all my debug and error messages. Review collected by and hosted on G2.com.
It quite challenging when i have to implement log4j in a completed project as each individual class needs to be updated for that even if i have used other form of logging in those. Review collected by and hosted on G2.com.
The log file output configuration is damn easy now, For testing it's a bane, it's fast and reliable. And most importantly a great community.The ease to classify the logs in wanr, info, error, and many other types. This also helped in capturing logs of various other dependent tools. The enabling feature, formatting of the logs, class parameter makes it very easy to use and confirm where the code passed from which class its in and what is the log signifying. The logs level change can enable to display debug and other logs as well which makes it great to use when requirement to monitor all logs. The color scheme also gets displayed in the unix vim tool making it to clearly understand if its an issue or not to be looked and worked upon. On top of these many tools and other readers are there which classify the logs, the kibana tool helps analyzing and displaying the logs of any format into required format. Review collected by and hosted on G2.com.
Increases the existing line of code, which seem hectic sometime considering large application codes. The dependency version keeps changing for each api and compatibility sometimes cause issue. Additional documentation and illustrations needed to efficiently utilise the product. Review collected by and hosted on G2.com.
The best thing about log4j is its ability to categorize logs into various levels. This is very helpful when I want to know whether a log is just for information or it's an error. Also the fact that I can create the output format as per my needs is like cherry on the cake. Review collected by and hosted on G2.com.
Log4j locks logfile that is a bit problematic in edge case scenarios where we need to delete the logfile while Log4j has it open. Review collected by and hosted on G2.com.