# Apache log4j Reviews
**Vendor:** The Apache Software Foundation  
**Category:** [Log Monitoring Software](https://www.g2.com/categories/log-monitoring)  
**Average Rating:** 4.5/5.0  
**Total Reviews:** 142
## About Apache log4j
Apache Log4j 2 is an upgrade to Log4j that provides significant improvements over its predecessor, Log4j 1.x, and provides many of the improvements available in Logback while fixing some inherent problems in Logback architecture.



## Apache log4j Pros & Cons
**What users like:**

- Users appreciate the **flexibility and configurability** of Apache Log4j, enhancing their debugging and monitoring capabilities. (1 reviews)
- Users appreciate the **flexibility and configurability** of Apache Log4j, enhancing their logging experience without code changes. (1 reviews)
- Users value the **flexibility and configurability** of Apache Log4j, enhancing logging control without altering application code. (1 reviews)
- Users value the **flexibility and configurability** of Apache Log4j, enhancing control over logging without altering application code. (1 reviews)
- Users appreciate the **flexibility and configurability** of Apache Log4j, enhancing monitoring and debugging capabilities effortlessly. (1 reviews)

**What users dislike:**

- Users find the **configuration issues** of Apache Log4j challenging, leading to potential performance problems and verbosity in logging. (1 reviews)
- Users find the **complexity of configuration and maintenance** in Apache Log4j to be a significant drawback. (1 reviews)
- Users highlight **update issues** with Apache Log4j, stressing the importance of managing configurations to avoid performance problems. (1 reviews)

## Apache log4j Reviews
  ### 1. Flexible and Granular Logging Control with Apache Log4j

**Rating:** 4.5/5.0 stars

**Reviewed by:** Chetana M. | IT support Engineer, Mid-Market (51-1000 emp.)

**Reviewed Date:** February 17, 2026

**What do you like best about Apache log4j?**

What I like most about Apache Log4j is how flexible and configurable it is. It gives me fine-grained control over logging levels, output formats, and destinations without needing to change the application code. I also appreciate that I can adjust logging configurations dynamically and integrate with different appenders, which makes it a powerful tool for debugging, monitoring, and maintaining production systems efficiently.

**What do you dislike about Apache log4j?**

One drawback of Apache Log4j is that its flexibility can also make it complicated to configure and maintain, particularly in large-scale or legacy systems. If it’s misconfigured, it can result in performance problems or unnecessarily verbose logging. In addition, past security vulnerabilities (such as Log4Shell) have underscored how important it is to keep dependencies up to date and to manage logging configurations carefully in production environments.

**What problems is Apache log4j solving and how is that benefiting you?**

Apache Log4j offers structured, highly configurable logging as a better alternative to basic print statements. It helps me debug more quickly, monitor my applications more effectively, and troubleshoot production issues without having to change the core code.

  ### 2. Good logging service with less code

**Rating:** 3.5/5.0 stars

**Reviewed by:** Verified User in Computer Software | Enterprise (> 1000 emp.)

**Reviewed Date:** April 04, 2020

**What do you like best about Apache log4j?**

It's really helpful if I am able to get logging event along with parameters while messages are logged. I also like the adaptor facility while using it along with other logging service.

**What do you dislike about Apache log4j?**

I felt just hiding such a big security vulnerability is a big crime. About 60% of all java applications around the world uses log4j indirectly. There might be lot of financial applications using it. That is biggest risk at high stakes.

**Recommendations to others considering Apache log4j:**

slf4j

**What problems is Apache log4j solving and how is that benefiting you?**

I am implementing it for one of my java applications server side application. It is helpful for maintaining all the logs of my applications easy.its a great logging  facade to use.

  ### 3. I have been worked with apache log4j for more than 4 years. Which is flexible and easy to learn.

**Rating:** 3.5/5.0 stars

**Reviewed by:** Kavindu G. | Software Engineer, Small-Business (50 or fewer emp.)

**Reviewed Date:** June 15, 2021

**What do you like best about Apache log4j?**

Can enable logging levels for specific packages, classes, which is very useful when we want to debug a particular package/class in production rather than allow the whole module. log level is amazing, which helps lot for application trouble shoot and debug them. printing class name and line is very helpful to identify and trouble shoot the issues. printing time is also gives benifits much and no need to set it explicitly. log4j feels me an extra enargy and which buld me on confidence on the system. Finaly Log4j features helped me lot for identify and sort out the production issue. Without log4j I may lost my job,

**What do you dislike about Apache log4j?**

When configuring the different appenders, we have to do the same configuration stuff multiple times, like date pattern and Threshold, which reduces the readability—expecting a common way to configure those. If there are lot of configuration like multiple appenders, complexity will be get increased.

**Recommendations to others considering Apache log4j:**

Accessible to getting started with simple scenarios and, according to requirements, can work with complex scenarios. Can getting start with minimum knowledge.

**What problems is Apache log4j solving and how is that benefiting you?**

Find out errors, make sure the business flow is working correctly. Find out time consumes. monitoring and capturing the production issues. debuging the dev envirment issues. can get the overall idea of the system. and can verify the expected outcomes from the specific functions. Transaction faluires are easy to identify and trouble shoot. Identify and verify the successful transactions. Use to identify servers are running or not.

  ### 4. The debug control you needed on your code is right here

**Rating:** 5.0/5.0 stars

**Reviewed by:** Verified User in Program Development | Small-Business (50 or fewer emp.)

**Reviewed Date:** June 07, 2021

**What do you like best about Apache log4j?**

It's hard to pick one attribute which is better than others, but I far as I have experienced, it provides control over a class to limit what we want, from setting up the timestamp to print the stack trace of error occurred it hold you back and give far better experience than regular console log, moreover its safe and secure and can be used in production code and helps us debug any issue or check the performance of our application in a safe and descriptive way. Also it's gives us so many custom options to create the root file either using xml tags or a .properties file and cutomize the logs like timestamp design, method name, classname, line number and also file size limit wchi helps in tracing latest report and more over.

**What do you dislike about Apache log4j?**

its nothing to dislike about log4j as it makes life easier for developer and apps to control your apps and store its behavior without fear of losing data. Its only disadvantage whcich i feel is the incorrect usage which can lead to failure in any method of improper logging will be difficult to trace and debug the issue in the application

**Recommendations to others considering Apache log4j:**

I would be more than happy to recommend log4j as it the answers to many questions which users and developers face when they need to track the application, whether it's the beginning or for a more extensive application in its later phase. log4j will keep your back and support in a very custom way to track the application health and immediate support for issues and errors. Moreover, it's easy to integrate and very basic boilerplate to start with and gives a lot back in return

**What problems is Apache log4j solving and how is that benefiting you?**

I been using this as my default logger module to log any activity like controller mapping, entry and exit from  a method or any service layer, debugging class name along with line numbers helps a lot to trace back the behavior of method and find location which initiated the error or exception. The security of logging comments and temporary activity related to a method without fear of losing important data is really helpful and helps only developers or relevant persons to access the file.

  ### 5. It made my life easy!!

**Rating:** 5.0/5.0 stars

**Reviewed by:** Verified User in Information Technology and Services | Enterprise (> 1000 emp.)

**Reviewed Date:** June 06, 2021

**What do you like best about Apache log4j?**

It shortens the number of lines of code. Cuts down the boilerplate code. Syntax I used in my Java applications, was far easy to remember. I think the team who created it has done a wonderful job.

**What do you dislike about Apache log4j?**

Well, so far, there is nothing to dislike. I think it is perfect for me. But yes, I would like to see what improvements come in next versions.

**Recommendations to others considering Apache log4j:**

I have used it in my Java based web application code. Log4j is so helpful, and makes your coding experience smooth. I would strongly recommend using it.

**What problems is Apache log4j solving and how is that benefiting you?**

As I said, it cuts down boilerplate code. Reduces the number of lines of code. Syntax was easy to remember and code. It was easy to use software. All my projects I worked in , in the previous org, were using apache log4j. It goes easy with Java based web applications.

  ### 6. Review for log4j

**Rating:** 4.5/5.0 stars

**Reviewed by:** Awaneesh D. | Senior Software Engineer, Small-Business (50 or fewer emp.)

**Reviewed Date:** June 05, 2021

**What do you like best about Apache log4j?**

Asynchronous logs, Different log formats , have used it with MDC

**What do you dislike about Apache log4j?**

Time taken to log is relatively higher than some other tools

**What problems is Apache log4j solving and how is that benefiting you?**

Have used the different banking application and microservices to logs the which services are executing. Our user defined format in log4j helps us to debug using mdc

  ### 7. It is highly recommended to use log4j in our project

**Rating:** 4.5/5.0 stars

**Reviewed by:** anoop s. | Software Engineer, Small-Business (50 or fewer emp.)

**Reviewed Date:** July 07, 2021

**What do you like best about Apache log4j?**

We can easily use log4j frame to track project flow and can trace execution.

**What do you dislike about Apache log4j?**

Nothing is there in log4j that can be avoided

**What problems is Apache log4j solving and how is that benefiting you?**

With apache log4j we can trace project execution flow.

  ### 8. This lib is very good. Very easy to understand and maintainable and scalable.

**Rating:** 4.0/5.0 stars

**Reviewed by:** Anshul J. | Senior Engineer - Product and Platform Engineering, Small-Business (50 or fewer emp.)

**Reviewed Date:** June 06, 2021

**What do you like best about Apache log4j?**

This lib is very good. Very easy to understand and maintainable and scalable. Easy to configurable.

**What do you dislike about Apache log4j?**

Nothing. Only thing here some of the company use SL4j. Which might be different from this.

**What problems is Apache log4j solving and how is that benefiting you?**

Very easy to manage lib
Easy to configurable
Easy to maintainable
Easy to scalable

  ### 9. Apache Log4j Review

**Rating:** 4.0/5.0 stars

**Reviewed by:** Verified User in Computer Software | Enterprise (> 1000 emp.)

**Reviewed Date:** June 25, 2021

**What do you like best about Apache log4j?**

It's easy to integrate with application.
It creates separate log files daily basis, which helps to understand and search any specific log quickly.
It has different modes info, debug and error again making it easy to read logs.

**What do you dislike about Apache log4j?**

No dislike as of now. It fulfills the requirement.

**What problems is Apache log4j solving and how is that benefiting you?**

We have several JAVA-based applications, and we create logs of all the applications. And push log to Sumologic for analysis.

  ### 10. Logging features

**Rating:** 4.0/5.0 stars

**Reviewed by:** Ravi R. | Senior Full Stack Developer, Enterprise (> 1000 emp.)

**Reviewed Date:** June 02, 2021

**What do you like best about Apache log4j?**

Logging options and formatting which provide easy way to deal with loggers.

**What do you dislike about Apache log4j?**

There should be more formatter n appender you can add to leavaraging the whole logging ecosystem

**What problems is Apache log4j solving and how is that benefiting you?**

Logging in lower and upper region to identify the issues

  ### 11. Solve my problem of logging using log4j

**Rating:** 4.5/5.0 stars

**Reviewed by:** Verified User in Computer Software | Small-Business (50 or fewer emp.)

**Reviewed Date:** March 30, 2020

**What do you like best about Apache log4j?**

This is very good library. We can see the log at run time. This helps me lot while writing code. we can easily configure in our project.

**What do you dislike about Apache log4j?**

I have not seen any downside of log4j.
So that I am using this.

**Recommendations to others considering Apache log4j:**

If anyone looking to see the logs please use this log4j. This js really very good and easy.

**What problems is Apache log4j solving and how is that benefiting you?**

This is configurable for console, databse and files.
So i can see the log from anywhere.

  ### 12. Beneficial to debug the code

**Rating:** 4.5/5.0 stars

**Reviewed by:** Tayyab Y. | Software Quality Assurance Engineer, Mid-Market (51-1000 emp.)

**Reviewed Date:** June 04, 2021

**What do you like best about Apache log4j?**

We manage logs which we want and save the log files

**What do you dislike about Apache log4j?**

We are unable to add dynamically values to logs

**What problems is Apache log4j solving and how is that benefiting you?**

It helps me to readable what happens in the code

  ### 13. Apache log4j that I am using in Java project.lts very useful and wecan use in enterprise application

**Rating:** 4.5/5.0 stars

**Reviewed by:** Verified User in Information Technology and Services | Mid-Market (51-1000 emp.)

**Reviewed Date:** June 06, 2021

**What do you like best about Apache log4j?**

Apache log4j that I am using in Java project.lts very useful and wecan use in enterprise application

**What do you dislike about Apache log4j?**

In other languages how to implement just figured it out.

**Recommendations to others considering Apache log4j:**

You can implement easily by using library of Apache log4j.

**What problems is Apache log4j solving and how is that benefiting you?**

Through log4j we can get response in file where we can set or configured in our location.

  ### 14. Great Tool for Monitoring

**Rating:** 3.5/5.0 stars

**Reviewed by:** Verified User in Computer Software | Mid-Market (51-1000 emp.)

**Reviewed Date:** June 04, 2021

**What do you like best about Apache log4j?**

It's predefined feature. Proper way of logging activities

**What do you dislike about Apache log4j?**

Could have automated to catch the exception by itself on adding the annotation alone

**What problems is Apache log4j solving and how is that benefiting you?**

We use log4j for logging all the method level activities and to elegantly inform the exception or error that occur

  ### 15. Simply outstanding and it makes debugging life easier

**Rating:** 5.0/5.0 stars

**Reviewed by:** Verified User in Information Technology and Services | Enterprise (> 1000 emp.)

**Reviewed Date:** June 04, 2021

**What do you like best about Apache log4j?**

It is very easy to configure and we can focus on other parts of our project without even worrying about logging

**What do you dislike about Apache log4j?**

I don't think there is any downside as such

**What problems is Apache log4j solving and how is that benefiting you?**

It has improved logging mechanism of my project

  ### 16. Most apt logging api with lesser owasp vulnerability

**Rating:** 4.5/5.0 stars

**Reviewed by:** Verified User in Investment Banking | Enterprise (> 1000 emp.)

**Reviewed Date:** June 05, 2021

**What do you like best about Apache log4j?**

Easy to configure and use the api in any language

**What do you dislike about Apache log4j?**

A bit cumbersome in terms of backward compatibility

**What problems is Apache log4j solving and how is that benefiting you?**

Using the customised logging , we are able to perform different level of logging in different environments

  ### 17. Highly configurable using files on runtime, multi level of loggingg and custimizable log format

**Rating:** 4.5/5.0 stars

**Reviewed by:** Umesh K. | Senior Software Engineer, Enterprise (> 1000 emp.)

**Reviewed Date:** April 06, 2020

**What do you like best about Apache log4j?**

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.

**What do you dislike about Apache log4j?**

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.

**Recommendations to others considering Apache log4j:**

Yes, I highly recommend using log4j for logging. The architecture of this framework is pretty easy to understand. It can become the central point of the whole application and logs can be written or directed to a variety of destinations (files, Relational database management systems, non-SQL DBS like elastic, queueing(rabbitmq). It comes with a different level for the logs which can be changed at runtime very easily. We can also manipulate the log format easily.

**What problems is Apache log4j solving and how is that benefiting you?**

We are using this for logging purposes. The kind of simplicity it has to manage the logging level and log format is really good. It is fast.

 The architecture of this framework is pretty easy to understand. It can become the central point of the whole application and logs can be written or directed to a variety of destinations (files, Relational database management systems, non-SQL DBS like elastic, queueing(rabbitmq). It comes with a different level for the logs which can be changed at runtime very easily. We can also manipulate the log format easily.

  ### 18. Recommended for freshers too...

**Rating:** 4.5/5.0 stars

**Reviewed by:** Tushar G. | Software Engineer, Mid-Market (51-1000 emp.)

**Reviewed Date:** May 17, 2020

**What do you like best about Apache log4j?**

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.

**What do you dislike about Apache log4j?**

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.

**Recommendations to others considering Apache log4j:**

I would like to recommend this Apache log4 logging utility for others to consider this at the top when it comes for large scale application logging purpose.

**What problems is Apache log4j solving and how is that benefiting you?**

Majorly I use log4j for logging some important events and execution logs too. It do help me in debugging my applications.

  ### 19. Log4j is very easy to implement logging system that is very versatile in all aspects.

**Rating:** 4.0/5.0 stars

**Reviewed by:** Harshdeep S. | Software Engineer, Enterprise (> 1000 emp.)

**Reviewed Date:** July 04, 2020

**What do you like best about Apache log4j?**

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.

**What do you dislike about Apache log4j?**

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.

**Recommendations to others considering Apache log4j:**

It provide extensive options regarding logging all my useful info and can be configured quite easily compaired to other logging solution.

**What problems is Apache log4j solving and how is that benefiting you?**

Log4j helps me solve most of my bugs as well as environment related issues that i get. Its and essential for me for remote testing and debuging of application.

  ### 20. The log analysis

**Rating:** 4.0/5.0 stars

**Reviewed by:** Ayan S. | Trainee System Engineer, Small-Business (50 or fewer emp.)

**Reviewed Date:** April 02, 2020

**What do you like best about Apache log4j?**

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.

**What do you dislike about Apache log4j?**

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.

**Recommendations to others considering Apache log4j:**

I would say it makes things easier, one should definitely go for it.

**What problems is Apache log4j solving and how is that benefiting you?**

Log4J is a total logging system . It is totally customisable according to your need and requirement, that's the best part. Sometimes just having the error logs was not enough. So, to debug issues in QA, LT or Prod we enable logging at trace/debug level to see more logs and find the course of error situation.

  ### 21. Log4j for the win

**Rating:** 4.5/5.0 stars

**Reviewed by:** Nabin S. | Software Engineer, Enterprise (> 1000 emp.)

**Reviewed Date:** April 01, 2020

**What do you like best about Apache log4j?**

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.

**What do you dislike about Apache log4j?**

Log4j locks logfile that is a bit problematic in edge case scenarios where we need to delete the logfile while Log4j has it open.

**Recommendations to others considering Apache log4j:**

You will love the simplicity it offers with the greatest logging speed. You can just blindly go for it and it will not disappoint you.

**What problems is Apache log4j solving and how is that benefiting you?**

I did not know much about logging in a code. But when implementing any server side application, I came across the benefit of logging the details and analysing them later. This helps troubleshooting and error reporting much easier and the reliability of Log4j was a boon since it's so fast as compared to many other Java based ogging utility.

  ### 22. From log4j to logback to Log4j2 and waiting further

**Rating:** 4.5/5.0 stars

**Reviewed by:** kshitij k. | Software Engineer, Mid-Market (51-1000 emp.)

**Reviewed Date:** March 31, 2020

**What do you like best about Apache log4j?**

Lazy logging, multiple appenders, different layouts, different triggering policies and many more

**What do you dislike about Apache log4j?**

1) IMHO, documentation is what makes the developers choose among logging frameworks or any other products; easier the implementation (docs), better the usage; this part seems to be very less focussed by organizations when developing a product but i find it the most important than others. Regarding the features, there are already plenty, but we are unaware of most of them. Also in current official docs, there is no opinionated way or example of configuring logging best suited for general application use cases. Also the documentation can only be fully understood by developers those are already experienced to some extent. There should be a basic example describing each statement. And the examples should be upgraded to next level little by little with skip option or levels to go to the matured examples. All the related configuration or options relating to that specific statement should have a separate documentation that contains description for each and every options. The idea of describing the things should be in layman terms and in as simple english as possible, as there are people that are weak at english language; eg some people i know didn't understand the term appender, layouts until i explained them in layman terms with examples and some drawings.
Also as people like me are lazy enough to read the whole single page docs, it would be better to have separated them in multiple pages with very less and informative content in each page.

2) It would be nice to have some online playground for practicing right away.

2)  It would be nice to have better default logging implementation in popular frameworks like spring boot i.e. from logback to log4j2 and so on.

**What problems is Apache log4j solving and how is that benefiting you?**

1) Enabling logging at runtime in case of any errors reported; without recompiling.
2) Lazy logging, triggering policies, appenders, layouts, yaml/properties based configuration, also actuators beng there in springboot etc are some benefits i enjoy a lot.

  ### 23. Used it for 1 year, then we changed because of management

**Rating:** 4.5/5.0 stars

**Reviewed by:** Adrian P. | Junior Java Software Developer, Small-Business (50 or fewer emp.)

**Reviewed Date:** March 30, 2020

**What do you like best about Apache log4j?**

The best thing about it is that it's easy to use and configure the log file outputs. 
Works great while testing or running production.
It is thread-safe, it uses multiple levels and most importantly it is optimized for speed.

**What do you dislike about Apache log4j?**

The only hindrance I found was while debugging, to display the log in the debug terminal in IntelliJ. It might have just been me, not understanding, or IntelliJ. In the end it works, it just needs a slightly better documentation on that part.

**Recommendations to others considering Apache log4j:**

Read the documentation thoroughly as it will help you on the long run.

**What problems is Apache log4j solving and how is that benefiting you?**

The main problem that was solved is monitoring runtime, nobody has to sit and watch the software run 24/7, you can use log4j, check them once in a while to see if anything is amiss.

Also, by having log files, you can get another person to look at them to see if anything is wrong, in case you missed it.

  ### 24. Log4j to create a log for Trace, debug and warning

**Rating:** 4.5/5.0 stars

**Reviewed by:** Rayees S. | Senior Software Engineer, Small-Business (50 or fewer emp.)

**Reviewed Date:** April 01, 2020

**What do you like best about Apache log4j?**

It allow you to define your own output format of log. 
It has ability to Categorize the log at different level like we can do it for debug, trace, warning, info, error. 
It allows the class hierarchy which will be useful. 
Its an open source

**What do you dislike about Apache log4j?**

The thing I faced while using log4j is it locks the logfile and you cannot delete the logfile when log4j opens the file

**Recommendations to others considering Apache log4j:**

If someone looking for creating a log which captures the details like debug, trace, info, warning, error and ana open source tool, I recommend to use log4j it will ease your job in many aspects

**What problems is Apache log4j solving and how is that benefiting you?**

Using log4j I was able to get the logs for error, info, warning, debug which was difficult sometimes in my java application if anything breaks out and to identify the cause of it. 
Log4j eased my debugging time and resolving issue is efficient.

  ### 25. Logging library which supports java based frameworks such as spring boot, quarkus and etc

**Rating:** 4.5/5.0 stars

**Reviewed by:** Vishva R. | Lead - Software Engineering, Mid-Market (51-1000 emp.)

**Reviewed Date:** April 07, 2020

**What do you like best about Apache log4j?**

Easy to integrate with java and supports major log level such as info, debug, error and etc. Besides log4j supports async logging which will decrease the latency and improve the performance. Log4J has been developed based on the plugin architecture, thus it is provide the capability to plug and use in any application based on java.

**What do you dislike about Apache log4j?**

There were issues in filtering the logs with syslog driver when we use docker.

**Recommendations to others considering Apache log4j:**

Log4J has some issues when we containerize java application with docker containers. Those has to be sorted in order to use with docker and kubernetes.

**What problems is Apache log4j solving and how is that benefiting you?**

Apache Log4J helps to troubleshoot the application bugs with logs. It is possible to enable and disable different level of logs when its needed and when the issue comes. This log library supports to integrate with zipkin distributed tracer as well when we use microservices with spring cloud.

  ### 26. Log4j to Improve Application Performance

**Rating:** 5.0/5.0 stars

**Reviewed by:** NAVEEN KUMAR M. | Senior Software Engineer, Small-Business (50 or fewer emp.)

**Reviewed Date:** April 02, 2020

**What do you like best about Apache log4j?**

Simple to implement with less configuration 

During testing or real time execution it works  optimized speed for best performance.

Using Log 4j we have generate log files in text format, so we were able to easily transcript the log file and identify the  error with the logging information . By using log4j it has saved our time and helped us to debug issues quickly

**What do you dislike about Apache log4j?**

The only Challenge is faced was while trying to integrate the log with 3rd party components. if there is format or template/documents can be really helpful

**Recommendations to others considering Apache log4j:**

Better Documentation and Strong Forums to support Developers questions.

**What problems is Apache log4j solving and how is that benefiting you?**

Using Log 4j we have generate log files in text format, so we were able to easily transcript the log file and identify the  error with the logging information . By using log4j it has saved our time and helped us to debug issues quickly

  ### 27. I am Software Engineer with 4 years of industry in Java, AWS and Angular.

**Rating:** 4.5/5.0 stars

**Reviewed by:** Abdul Maroof I. | Senior Software Engineer, Mid-Market (51-1000 emp.)

**Reviewed Date:** April 30, 2020

**What do you like best about Apache log4j?**

I like the overall logging experience like you can handle everything from a configuration file. Moreover, the default colors for each level are also quite useful as they help in debugging the issues and you can enable/disable log levels whenever you want.

**What do you dislike about Apache log4j?**

I face memory leak issue few times but that is not a major issue. Log4j should be supported for all platforms and languages like this is how so we may have consistent logging experience for all applications.

**What problems is Apache log4j solving and how is that benefiting you?**

- Logging of application
- Different log levels and their layout difference

  ### 28. Easily configurable and faster tool for all logging activities

**Rating:** 4.5/5.0 stars

**Reviewed by:** Shubham N. | Technical Consultant, Mid-Market (51-1000 emp.)

**Reviewed Date:** April 01, 2020

**What do you like best about Apache log4j?**

Log4j is an amazing tool, easily configurable (just add the dependency in pom file, if using maven) and maintainable. Setting debug log level for Error, Info, Warn, Fatal etc makes logging easier. We can also use it to store logs in database and so on. It supports Apache flume, SLF4j, Splunk etc.

**What do you dislike about Apache log4j?**

Log4j when used extensively makes the processes slow. Now log4j2 is available which provides multiple configurable ways (xml, properties, java code ) and is faster.

**What problems is Apache log4j solving and how is that benefiting you?**

I have used it to create logs for my website on different levels like info, warn, error etc. Sending these logs to Splunk to create more readable dashboard is one of my favourite part. We also used it to write log in a file and email it to the team whenever the values reach a certain level or a error has occurred.

  ### 29. Apache Log4j makes logging effortless

**Rating:** 4.5/5.0 stars

**Reviewed by:** Anusha T. | Senior Java Developer, Mid-Market (51-1000 emp.)

**Reviewed Date:** April 01, 2020

**What do you like best about Apache log4j?**

Doing software development gets easy when you have a good logging framework to log all the necessary steps to make testing and debugging easy. Log 4j is a life saver when it comes to logging when it comes to performance. It has good performance especially with large transactions on the backend .Also it can be written in Java easily and has synchronous appenders to send log to different destinations

**What do you dislike about Apache log4j?**

It has too much initial configuration and logging at info level at high transaction level sucks as it dumps the output with log messages

**Recommendations to others considering Apache log4j:**

You might have some initial set up hard work but it is smooth once you setup

**What problems is Apache log4j solving and how is that benefiting you?**

Before implementing Log4j it was hard to send logging output to different consoles like sending it to files but with Log4j it’s easy to send to different ouputs

  ### 30. A reliable, fast and flexible logging framework

**Rating:** 4.0/5.0 stars

**Reviewed by:** Reetik J. | Quality Assurance Intern, Small-Business (50 or fewer emp.)

**Reviewed Date:** April 01, 2020

**What do you like best about Apache log4j?**

It can be used to answer the client requirements of logs. Even non technical person can easily differentiate the types of logs.  We can create logs files easily and if a certain limit exceeds then next log file is created automatically.

**What do you dislike about Apache log4j?**

There is not a single thing i dislike about this API. It is a work of art.

**Recommendations to others considering Apache log4j:**

I highly recommend everyone who comes across to use logging features in programming. As log4j is very easy to use, manage the configuration files. And even there is a detailed documentation in their  website in case of any confusion.

**What problems is Apache log4j solving and how is that benefiting you?**

I have been able to show the error and its severity to the development team to help removing it. I can even show the logs to the clients in the latest release either is be errors or whole logs.

  ### 31. Functional and powerfull logging framework

**Rating:** 5.0/5.0 stars

**Reviewed by:** Alejandro O. | Software Engineer, Enterprise (> 1000 emp.)

**Reviewed Date:** April 03, 2020

**What do you like best about Apache log4j?**

Allows multiple logging endpoints and formats depending on level and origin.

**What do you dislike about Apache log4j?**

Appenders documentation kind of hard to find

**Recommendations to others considering Apache log4j:**

1) It is really easy to use and also very powerful

2) Allows you to set different configuration for testing and deployment

3) Really easy to configure using properties files or XML files depending on your requirements

4) Configuration inheritance is allowed and parent configuration can be overwritten form child configuration files

5) Contains a very diverse amount of appenders such a as console or file appenders

6) Allows multiple rolling policies for log file management like date and time or file size

7) Logging pattern is really easy to configure to get the best result for your monitoring requirements

**What problems is Apache log4j solving and how is that benefiting you?**

Most of our company's applications use log4j to get the execution and debugging logs for development stages

  ### 32. Apache log4j for json for building the json logger

**Rating:** 5.0/5.0 stars

**Reviewed by:** Abhishek T. | Software Engineer 2, Mid-Market (51-1000 emp.)

**Reviewed Date:** March 28, 2020

**What do you like best about Apache log4j?**

Simplicity with less configuration.

 As we develop own logger with the log4j which is helpful for json logging with some specific implementation from our end.

which is not possible without great community support and active releases.

**What do you dislike about Apache log4j?**

As log4j is an interface where different people different implementation one is not sure of which will be useful. So I think so log4j will come up with solutions.

**Recommendations to others considering Apache log4j:**

1)  Easy to implement.

2) We have implemented in java.

3) Easy configuration

4)  Great documentation available with lot of example code.

5)  Great community support.

**What problems is Apache log4j solving and how is that benefiting you?**

First and foremost: Consistent Logging.

We created the json logger for the Apache Kafka which internally uses the log4j interface as per the business requirements.

There are few implementation of json logger of log4j available in the open source but we had specific requirements.

  ### 33. Best logging utility loaded with extensive features

**Rating:** 5.0/5.0 stars

**Reviewed by:** Satyabrat S. | Database  & Datawarehouse Developer, Mid-Market (51-1000 emp.)

**Reviewed Date:** March 30, 2020

**What do you like best about Apache log4j?**

Log levels / Custom log levels, Garbage free, Lambda support, log streaming

**What do you dislike about Apache log4j?**

Creates a overhead which slows down a performance a bit.

**Recommendations to others considering Apache log4j:**

Its the best logging software you could ever get as a open source

**What problems is Apache log4j solving and how is that benefiting you?**

All my developed applications uses log4j as logger utility. All the automation workflows logs are streamed and store into database using JDBC appenders. It is useful to create an insight report of my application health status and errors so that the support team can review them easily by pulling the logging reports from the database.

  ### 34. One of the powerful logging framework

**Rating:** 4.5/5.0 stars

**Reviewed by:** Askar M. | Full-Stack Developer, Mid-Market (51-1000 emp.)

**Reviewed Date:** March 31, 2020

**What do you like best about Apache log4j?**

I've used this framework in my previous java project. It's easy to pick and choose the logging levels down to the class thus making debug my software much easier. Backed up by Apache tends to use in vast projects.

**What do you dislike about Apache log4j?**

I wish the configuration to be simple. But with the newer version (Log4j2) I think its resolved.

**Recommendations to others considering Apache log4j:**

Easy of use

**What problems is Apache log4j solving and how is that benefiting you?**

Logging the software makes easier to debug. Hence improving the software quality and helps to rectify where the issue has occurred even after deployment.

  ### 35. Review of Apache log4j

**Rating:** 4.5/5.0 stars

**Reviewed by:** Sharath K. | Senior Engineer, Enterprise (> 1000 emp.)

**Reviewed Date:** April 13, 2020

**What do you like best about Apache log4j?**

It has multiple levels of logging like debug, warn, info and error. Which makes it easy to index in log analyzer tools like splunk etc. Also it takes full path of class/method from which log is generated.

**What do you dislike about Apache log4j?**

It would be nice to have some online playground which would make it easy to playaround with various logging options provided. so that we can directly use it in our local.

**Recommendations to others considering Apache log4j:**

Amazing tool for logging it solves all the logging requirements required.

**What problems is Apache log4j solving and how is that benefiting you?**

A common industry standard logging jar which can be used in all our applications. Classification of logs into various category helps debugging application in big way also in indexing in log analyzer tool.

  ### 36. It helps in identifying issues with in the codebase you dont even write if used properly.

**Rating:** 5.0/5.0 stars

**Reviewed by:** Verified User in Computer Software | Small-Business (50 or fewer emp.)

**Reviewed Date:** April 01, 2020

**What do you like best about Apache log4j?**

1- Multiple levels of recording logs i-e info, warning, debug. 
2- Easy to add in your project. Just a simple dependency
3- Define logging of classes at root level. 
4- Recording of queries
5- Console usage + file writting handling

**What do you dislike about Apache log4j?**

Do not delete the previous logs if file is not deleted which leads to huge chunk of file.

**Recommendations to others considering Apache log4j:**

I would recommend to use apache log4j to use even in small projects. It would help you writting a code with cleaniness . You will be aware of what would cause the project to fail and what needs to log against it. With that you will understand how to represent the prblem to client. You can even ask your client to read the logs and see what is wrong and describe the actual problem. It will help you to save your time as well as your client.

**What problems is Apache log4j solving and how is that benefiting you?**

It helps in solving problem more quickly than looking into the code base if I explain it technically. I am working on Retail product having multiple modules linked togather. Its a common practice to use logging to identify which part of module is broken So It can be looked straight away rather than just wondering where it comes from. 

Benefit:
It saves time. Increases your effeciency to identify the problem quickly and resolve it.

  ### 37. Excellent logging mechanism

**Rating:** 5.0/5.0 stars

**Reviewed by:** Ranjana S. | Software Engineer 3, Enterprise (> 1000 emp.)

**Reviewed Date:** April 02, 2020

**What do you like best about Apache log4j?**

Easy to use for various kind of problems.
Easy to debug through the logs.
Various types of log levels.
Streaming of logs.

**What do you dislike about Apache log4j?**

Documentation can be more simple so that it can be more helpful.
Also sometimes support is not as par.

**Recommendations to others considering Apache log4j:**

Must use. Easy to use, everything all u need. All levels.

**What problems is Apache log4j solving and how is that benefiting you?**

Most of the application I am working on, I use log4j for logging.
I stream those logs in kibana to debug errors.

  ### 38. Log4j on server side

**Rating:** 3.5/5.0 stars

**Reviewed by:** Abhishek B. | Software Engineer, Enterprise (> 1000 emp.)

**Reviewed Date:** April 02, 2020

**What do you like best about Apache log4j?**

We used apache log 4j for logging our server side code in previous company. We integrated Apache log 4j with maven and logged all the error and information in the log file.Log 4j generate a txt file log,through which we can easily locate error with the logging information from txt file which saved our time and heled us to debug it quickly.

**What do you dislike about Apache log4j?**

It slowed down the system little bit ,as compared to normal speed ,but that was ok.

**Recommendations to others considering Apache log4j:**

Its good for logging your java code on server side, one must give it a try

**What problems is Apache log4j solving and how is that benefiting you?**

Greatly helped in debugging GWT code errors of configuration and xml files inclusion.

  ### 39. Good logging infrastructure without putting in any extra efforts.

**Rating:** 5.0/5.0 stars

**Reviewed by:** Niraj Kumar S. | Software Engineer, Enterprise (> 1000 emp.)

**Reviewed Date:** April 03, 2020

**What do you like best about Apache log4j?**

Supports more than one appender per logger.  Logging behavior is specified in a configuration file may be externally or within application resources loaded during runtime. Supports different logging levels Such as Error, Debug, Info etc.
It is Thread safe as well.
A single thread of logger can be used to extract user based tracking in the application.

**What do you dislike about Apache log4j?**

Although didn't find anything least helpful, except the fact that sometimes logging increases the programming overhead.

**What problems is Apache log4j solving and how is that benefiting you?**

It has helped me extensively in the application debugging mainly on the production environment and keeping track of programming flow of better Development. Helps in mitigating the risk of unexpected flow of application.

  ### 40. log4j is an amazing logging utility to track all the insights of your aplication.

**Rating:** 3.0/5.0 stars

**Reviewed by:** Ashok R. | Software Engineer, Mid-Market (51-1000 emp.)

**Reviewed Date:** March 30, 2020

**What do you like best about Apache log4j?**

It'll help you get into the users insights, with which you can see what are difficulties they face in our application. Based on which, we can improve our application.

**What do you dislike about Apache log4j?**

It increased the lines of code in your application. For bigger application, to get a lot of insights, this might be hectic.

**What problems is Apache log4j solving and how is that benefiting you?**

I have worked on an wizard applicaiton, where we have a lot pages and users needs to navigate through different flows.  So with the log4j log info, I'll get what are flow the users are going frequently and what the less used flow. Based on which we update our application to give a better experience.

  ### 41. Apache log4j offers a very illustrative tool for logging

**Rating:** 5.0/5.0 stars

**Reviewed by:** Mrityunjay T. | Specialist Programmer, Enterprise (> 1000 emp.)

**Reviewed Date:** April 16, 2020

**What do you like best about Apache log4j?**

Apache log4j offers a very illustrative way to log messages rather than just strings, thus helps in quick debugging of code.It supports multiple APIs, Avoid lock-in, Automatic reloading of configurations, Advance filtering,Plugin architecture,Property support, Java 8 Lambda Expression support, custom log API, garbage free and cloud enabled.

**What do you dislike about Apache log4j?**

Log files are locked in log4j, Which means we can't delete a log file while it is open in Log4J.

**Recommendations to others considering Apache log4j:**

Easy to use and configure even for a new user.

**What problems is Apache log4j solving and how is that benefiting you?**

I am using log4j in my project for logging in different manners and using the same to debug code.

  ### 42. Experience with Apache log4j

**Rating:** 5.0/5.0 stars

**Reviewed by:** Mohd Iqbal H. | Software Engineer, Small-Business (50 or fewer emp.)

**Reviewed Date:** May 10, 2020

**What do you like best about Apache log4j?**

Creating log files for our Project, which saves a lot of time for the audit error. We can easily locate errors from a txt file and all the functionalities

**What do you dislike about Apache log4j?**

I have no idea dislike using Apache log4j

**What problems is Apache log4j solving and how is that benefiting you?**

I have no problem to using this Apache Log4j

  ### 43. 3 to 4 years experience implementing this API

**Rating:** 5.0/5.0 stars

**Reviewed by:** JEROME V. | Software Engineer, Mid-Market (51-1000 emp.)

**Reviewed Date:** April 06, 2020

**What do you like best about Apache log4j?**

Easy to configure components and its separation from the development implementation which makes it stand alone also its garbage-free.
Creating a logs is very important. with the help of this api library which is very easy to setup and to understand development becomes more lively and easy

**What do you dislike about Apache log4j?**

a little bit boilerplate whereas I need to instantiate in every time in every class that I need to log

**Recommendations to others considering Apache log4j:**

if you are looking for implementation and easy to understand logging function, this will be the perfect api for you.

**What problems is Apache log4j solving and how is that benefiting you?**

miss logic, an unimplemented function, and error in specific class or object.

  ### 44. Log4j changed the way you look at production issues.

**Rating:** 5.0/5.0 stars

**Reviewed by:** Verified User in Computer Software | Small-Business (50 or fewer emp.)

**Reviewed Date:** April 03, 2020

**What do you like best about Apache log4j?**

Almost all the things about log4j is helpful in its own way but one thing I like to mention is its ability to generate/archive log files with meaningful filenames and log patterns.
Log4j is a powerful logging provider during development as well as in production environment. 
we always come up with production issues where it becomes defficult to backtrack an exception but by implementing log4j it's just very seamless while tracking user path. I personally even got visuals while reading some log files which helped me to debug most of critical production issues.

**What do you dislike about Apache log4j?**

One thing I noticed that it a framework already support some logging feature then some classes of log4j conflict with base logger. version issues might come when setting up project skeleton.

**Recommendations to others considering Apache log4j:**

easy to configure.

**What problems is Apache log4j solving and how is that benefiting you?**

Overall readability of code and solving production issue.

  ### 45. Review for Apache log4j

**Rating:** 4.5/5.0 stars

**Reviewed by:** Sajjad Ali V. | Software Engineer, Mid-Market (51-1000 emp.)

**Reviewed Date:** April 01, 2020

**What do you like best about Apache log4j?**

One can use different logging libraries with SLF4J and it's easy to switch among different logging libraries without changing anything in source code.

Also file locking.

**What do you dislike about Apache log4j?**

SLF4J doesn't handles unexpected exceptions at runtime which cause the application to crash.

**Recommendations to others considering Apache log4j:**

It's good for logging and easy to integrate and use.

**What problems is Apache log4j solving and how is that benefiting you?**

switching among different logging libraries without changing anything in source code.

  ### 46. Best logging till date.

**Rating:** 5.0/5.0 stars

**Reviewed by:** ASHISH S. | Software Development Engineer, Mid-Market (51-1000 emp.)

**Reviewed Date:** April 01, 2020

**What do you like best about Apache log4j?**

The best thing about it is that it's easy to configure,thread safe and works pretty well on production as well.

Multiple levels of logging like Debug, Info, Warn are very useful.

**What do you dislike about Apache log4j?**

Takes time to understand, but overall experience is good once all wired.

**Recommendations to others considering Apache log4j:**

A very useful too for the logging components . U can even migrate to log4j.

**What problems is Apache log4j solving and how is that benefiting you?**

Mostly logging related issues are fixed and logging can be done on files,console, syslogs etc.
In helped us a lot in production to read logs as part of server logs.

  ### 47. Using for logging test scripts

**Rating:** 4.0/5.0 stars

**Reviewed by:** Punks R. | Software Engineer, Mid-Market (51-1000 emp.)

**Reviewed Date:** September 11, 2019

**What do you like best about Apache log4j?**

We are using apache log 4j for logging our test scripts data. We have integrated Apache log 4j with selenium and logging all the error and information in the log file. Only we need to instantiate our logger class in the base class and load the log4j.properties files which include all the information from format to location. Log 4j generate a txt file log, so we can easily locate error with the logging information from txt file which saves our time and help us to debug it quickly

**What do you dislike about Apache log4j?**

Sometimes it is difficult to create proper format in log4j.properties file. So they should define all the format ways with examples. Otherwise, it is best for logging


**What problems is Apache log4j solving and how is that benefiting you?**

Creating log files for our test scripts, which saves a lot of time. We can easily locate errors from a txt file and all the functionalities which are working properly. We have integrated log 4j with selenium web driver project and logging all the information in txt file

  ### 48. Intuitive and Easy

**Rating:** 4.5/5.0 stars

**Reviewed by:** Pragyab R. | Quality Assurance Analyst, Mid-Market (51-1000 emp.)

**Reviewed Date:** March 31, 2020

**What do you like best about Apache log4j?**

You can decouple your logging code from what you actually want to log and where and how you want to log it.
Also the ability to filter by severity.

**What do you dislike about Apache log4j?**

Could be more efficient while writing the codes.

**Recommendations to others considering Apache log4j:**

Utilize the various intuitive functionalities for the best output.
Read the documentation thoroughly as it will help you in the long run.

**What problems is Apache log4j solving and how is that benefiting you?**

1)  Debuggging
2) Manage Test Flow
3) Differentiate Log Levels
4)  it's easy to use and configure the log file outputs.

Works great while testing or running production.

  ### 49. Engineers best choice for complete log analysis

**Rating:** 4.5/5.0 stars

**Reviewed by:** Verified User in Computer & Network Security | Mid-Market (51-1000 emp.)

**Reviewed Date:** May 05, 2020

**What do you like best about Apache log4j?**

I share the engineers comments rather my own.
Log4J is a total logging system . It is totally customisable according to your need and requirement, that's the best part.

We are using this for logging purposes. The kind of simplicity it has to manage the logging level and log format is really good. It is fast.

Creating log files for our test scripts, which saves a lot of time. We can easily locate errors from a txt file and all the functionalities

**What do you dislike about Apache log4j?**

Its hard to say dislike part , till now there is no dislike

**What problems is Apache log4j solving and how is that benefiting you?**

Make out the application execution to be perfected by the logs.

  ### 50. Use log4J to log useful information using simple steps

**Rating:** 4.5/5.0 stars

**Reviewed by:** Harshal S. | Software Engineer, Enterprise (> 1000 emp.)

**Reviewed Date:** April 07, 2020

**What do you like best about Apache log4j?**

Log4J is a total logging system . It is totally customisable according to your need and requirement, that's the best part. You can log your statements at different level like error, debug log and trace which will really help you to find an issue in your application or to debug an issue.. I will highly recommend this.

**What do you dislike about Apache log4j?**

Nothing to dislike in this library. Everything works as expected here.

**What problems is Apache log4j solving and how is that benefiting you?**

It helped me to find the application issues in different environments very quickly.


## Apache log4j Discussions
  - [Hi, I want to use colors while printing logs. Any example configuration?](https://www.g2.com/discussions/26064-hi-i-want-to-use-colors-while-printing-logs-any-example-configuration) - 1 comment, 1 upvote

- [View Apache log4j pricing details and edition comparison](https://www.g2.com/products/apache-log4j/reviews?section=pricing&secure%5Bexpires_at%5D=2026-05-24+12%3A16%3A42+-0500&secure%5Bsession_id%5D=820401bc-b7a6-42ee-952d-f6d239611383&secure%5Btoken%5D=bb0ea2b4a9c38a78760d51fc4baa62b04e93469501a17878d38978bdc878530b&format=llm_user)

## Apache log4j Features
**Visibility**
- Dashboards and Visualizations
- Alerts and Notifications
- Reporting

**Monitoring and Management**
- Automation
- Performance Baseline
- Real-Time Monitoring

**Agentic AI - Log Monitoring**
- Autonomous Task Execution
- Multi-step Planning
- Cross-system Integration
- Adaptive Learning
- Natural Language Interaction
- Proactive Assistance
- Decision Making

## Top Apache log4j Alternatives
  - [Splunk Enterprise](https://www.g2.com/products/splunk-enterprise/reviews) - 4.3/5.0 (413 reviews)
  - [Checkmk](https://www.g2.com/products/checkmk/reviews) - 4.7/5.0 (283 reviews)
  - [Datadog](https://www.g2.com/products/datadog/reviews) - 4.4/5.0 (694 reviews)

