I am interested in a specific point in Robert's questions: "I like to use the Audit level to track users performing certain tasks"
>From my perspective, one of the attractive features of log4j is the capacity to pass in an arbitrary object as the "message" and then to provide a renderer so that it can be appropriately represented. Following from this, I have found it makes more sense to make the interesting distinctions up front and to route objects of different types to different destinations. That way I don't work with an all purpose logfile but with a set of purpose built, problem oriented data files. There are many ways to achieve this end. I happen to use specialized Category classes with their own appender instances but that is not the only way. Filters can also be used. A lot depends on matters like performance and developer practices. The essential consideration for me is not to generate/process/record an object which doesn't have an intended use. This means making the essential distinctions as far upstream as possible. The other proposals which have been put forth have much merit but when performance/scalability issues are critical, try the early discrimination methods. Burton -----Original Message----- From: Robert Hewlett [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 1:02 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Question! Does Log4J have a utility to parse it out. 1. If a DailyRolling logfile was used someone might want to parse the logs looking for special information. I was thinking about writing a little applet that would load the data and allow the user to select what they wanted to show and not to show and spit out an excel spreadsheet or a txt file or spit out and .html file to place on a website for viewing. Although Log4J is used mostly for logging errors. I like to use the Audit level to track users performing certain tasks so I can create a user profile of the different users and what they are trying to do on my sites. This I think would help me create a site tailored towards my customers needs. 2. If an alert4J was created to parse the logs and look for specific errors to send out a page or an email when a certain error occurred (configurable). This would be too hard to do but would make things very easy for someone to include in their log4j.props file. ERROR: web-site down EMAIL:[EMAIL PROTECTED],[EMAIL PROTECTED] Just some suggestions. I wouldnt mind creating some things to make this happen. Thanks, Rob -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>