File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Open Source Projects and the fly likes Log4J Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4J" Watch "Log4J" New topic


Dianne Spillers

Joined: Mar 05, 2001
Posts: 9
We are thinking of using Log4J for an application. Does anyone have any experience with it??? Likes/Dislikes any feedback would be greatly appreciated
Michael Glen

Joined: Jan 08, 2002
Posts: 5
Am currently using log4j. The initial configuration and setup is not too complicated and once in place it is a very good product for debugging and logging in general.
No complaints.
Allan Moster
Ranch Hand

Joined: Sep 14, 2001
Posts: 153
Check this:
Dianne Spillers

Joined: Mar 05, 2001
Posts: 9
Thanks Michael.
Do you ever change the log behavior on the fly??? and have you done any customization to it??
Dianne Spillers

Joined: Mar 05, 2001
Posts: 9
Allan. Thank you.
Your other thread was just what I needed. I too use VisualAge and that input was great. Think I'll try it and see how it works for me
Alex Givant

Joined: Nov 12, 2001
Posts: 23
They tell you that Log4J support JDK 1.1.x but it's not so, I have problem to run it under something lower than 1.2 because it's using JavaBeans with some definitions exist only since 1.2
Beside that it's just *excellent* product and I enjoy it a lot.
Michael Glen

Joined: Jan 08, 2002
Posts: 5
Have not done any complex customization.
There is a file called where you can provide your own configuration parameters.
When you are logging be sure to pay attention to the different levels of logging ie. debug, info, error etc. as you can turn these on and off inside the properties file w/o actually deleting the log statement from the code.
It comes in handy when you take the code into a production environment.

Joined: Jan 23, 2002
Posts: 3
I have used LOG4J for my last project and I loved it and will recommend it to any one.
In fact Sun's upcoming logging API is a lighter version of LOG4J.
It gives you full control over the logging by a using a configuration file in XML or Java properties file format.
And it allows you to log to different appenders for example System.out, File , Database, NTEventLog and also allows you to develop your own appenders.
For example in my last project I used the JDBCAppender to log to a database and developed my own Appender to log messages to TIB/Hawk in real time.
BTW, TIB/Hawk is a Monitoring Application in TIBCO's(one of the major EAI software vendor) Active Enterprise product suite.
And I developed a wrapper API on top of LOG4J API to be used by the other modules in the project.
And it was loved by everyone in the project.
If someone needs any help I am willing to share my knowledge.
Vignes Inpanathan
Ravi Veera
Ranch Hand

Joined: Jun 23, 2001
Posts: 127
Hi Vignes,
With the upcoming release of J2SE1.4(It's in release candidate phase) could you please highlight the signficant differences between Log4J and the logging API.
I do know that the logging API will not work with earlier versions of J2SE.
Other than that can you tell us any differences between the 2 API's which can cause an impact on an Application's logging capabilities.
I have had a look at both and it's quite obvious that the logging API is highly 'influenced' by Log4J and has borrowed heavily from it.
It's usually easier to get buy in from management/developers to use an API that's part of the Standard package. Is there any compelling reason where I can say that Log4j will be better?
I agree. Here's the link:
subject: Log4J
It's not a secret anymore!