Re: Which logging facility is best (Log4j, Jylog, Syslog, java.util.logging, ...)?
Posted By:
Simon_Ablett
Posted On:
Tuesday, April 23, 2002 09:59 AM
Approach choosing an API in much the same way as you'd approach (well, hopefully anyway!!) choosing any other software package. Write down an unambiguous list of your requirements and then compare them with the features of each available package. In the end anyone's choice is dependant on their particular set of needs at a specific point in time. Just because five people say 'we love package A' doesn't mean that it will be the best for you or for your project.
Regards.
Re: Which logging facility is best (Log4j, Jylog, Syslog, java.util.logging, ...)?
Posted By:
John_Guthrie
Posted On:
Tuesday, April 23, 2002 08:27 AM
I'd vote log4j. It's powerful, well-supported, and fairly easy to get started with.
I've been using log4j for a year and a half, but am in a project now where we are using the new java.util.logging stuff, and I am disappointed in it. As I posted yesterday, documentation on setting up a useful properties file is non-existent. I hadn't realized that java.util.logging was such an uncooked package.
Re: Which logging facility is best (Log4j, Jylog, Syslog, java.util.logging, ...)?
Posted By:
Bozidar_Dangubic
Posted On:
Tuesday, April 23, 2002 06:19 AM
well, you provided pros and cons yourself so pick your poison. you are right in analysis of what is available. so you have to pick. if you do not like any of the option that you have at your disposal, build one yourself. I have been using log4j in many applications but for one we have built our own logger which works exactly the way we want it to work. so if log4j or syslog are not satisfactory for you, i.e. if you cannot live with the drawbacks of having them on board, then you will likely have to build one yourself. If you do not have the time or resources to do that, then I suggest log4j.