Question on writing from an applet

2001-10-16 Thread Veerappan Saravanan
Hi! 1. When writing from an applet, do you have to jar up the log4j.jar inside the applet and download it onto a client. 2. Do you have any security issues when writing to a file on a clients machine using applets in log4j. Thanks in advance. Van --

using log4j in applets

2001-10-15 Thread Veerappan Saravanan
Hi All! I am in a 3 tier environment, where the domain is in an appserver and the client is a browser. I would like to log some error messages from my applet on to my clients machine. Has anyone ever tried it? The only way I can think of doing this is by downloading log4j.jar on to the client

RE: Designing Logging class

2001-07-17 Thread Veerappan Saravanan
Title: Designing Logging class Reshma,   This is Van. The one problem that we are finding with using static utility class is that the entire product is cluttered with calls to this static logging class. You are essentially bounding logging to this class.   i.e, there are going to be calls li

RE: Asynchronous logging ? JMSAppender ?

2001-07-16 Thread Veerappan Saravanan
Title: Asynchronous logging ? JMSAppender ? When using JMS, if these messages are something that you cannot loose under any circumstances, then you would have to use persistence JMS, which affects performance and would most likely be an over kill depending on where you log these messages.  

Log a localized and parameterized message

2001-07-12 Thread Veerappan Saravanan
Category has a method called l7dlog to help with parameterization and localization. But it doesn't quite do what I would like it to do. If I have a resource bundle that has the following entry ERROR_101=some error in the system then if I call l7dlog(Priority.ERROR, ERROR_101, null); the out

RE: runtime licenses...

2001-07-11 Thread Veerappan Saravanan
Basically, anything under apache is free to use. For distribution and other stuff read the apache license located under http://www.apache.org The idea is to give and take, developers contribute their share to open source and in return make use of the product. Van -Original Message- From

RE: Additivity flag

2001-07-05 Thread Veerappan Saravanan
log4j.additivity.categoryName=false -Original Message- From: James House [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 05, 2001 2:23 PM To: LOG4J Users Mailing List Subject: RE: Additivity flag Can anyone answer how to do this in the properties file? Also, I've seen it asked a few t

Designing logging classes

2001-07-05 Thread Veerappan Saravanan
I was curious as to how logging is supposed to be implemented. I can basically see these two approaches 1. Make every class a logging class. i.e, All domain classes should inherit from a class called Log, which takes care of logging. Here you can argue that all classes are loggers so it's appro

RE: How to switch off the loging?

2001-06-27 Thread Veerappan Saravanan
Sorry, BasicConfigurator.disable seems to be deprecated. You can use Category.getDefaultHierarchy().disableAll() -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 11:58 AM To: [EMAIL PROTECTED] Subject: How to switch off the loging? I h

RE: How to switch off the loging?

2001-06-27 Thread Veerappan Saravanan
Take a look at BasicConfigurator.disable -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 11:58 AM To: [EMAIL PROTECTED] Subject: How to switch off the loging? I have a category com.mycompany.prod. How to switch off it's loging? I me

RE: Printing Absolute Time Stamps

2001-06-27 Thread Veerappan Saravanan
I guess you need the following property log4j.appender.standardOutput.layout.ConversionPattern=%d{ABSOLUTE} -%m\n -Original Message- From: Adler, Oliver [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 2:18 AM To: '[EMAIL PROTECTED]' Subject: Printing Absolute Time Stamps Hi,

RE: Dynamic property file

2001-06-26 Thread Veerappan Saravanan
PropertyConfigurator>>configureAndWatch should do the trick -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 26, 2001 1:00 PM To: [EMAIL PROTECTED] Subject: Dynamic property file Hello I would like to dynamically change the priority of logging.

RE: Logging to multiple files from application server

2001-06-20 Thread Veerappan Saravanan
Correct me if I am wrong, I believe all categories inherit from the root category. The output of a log statement of category C will go to all the appenders in C and its parents. So, in your case since your maillog inherits from root category which routes to weblogic log, they go to both the out

RE: One category, different priorities, different outputs

2001-06-13 Thread Veerappan Saravanan
al Message----- From: Veerappan Saravanan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001 4:30 PM To: '[EMAIL PROTECTED]' Subject: One category, different priorities, different outputs I have a category 'categoryA' that needs to log to different outputs based on their pr

One category, different priorities, different outputs

2001-06-13 Thread Veerappan Saravanan
I have a category 'categoryA' that needs to log to different outputs based on their priority. The following piece of code doesn't work log4j.category.categoryA=ERROR, outputA log4j.category.categoryA=DEBUG, outputB The second line overwrites the previous line, so the previous line is not conside

RE: Turning off logging in properties file

2001-06-07 Thread Veerappan Saravanan
I agree with Jann that atleast error messages should show up. But if you still want to do it, I think the following code will work. BasicConfigurator.disable(Priority.FATAL); This will disable all Fatal and lesser priority messages. Van -Original Message- From: Jann VanOver [mailto:[E

Capturing exceptions in when writing your own appender

2001-05-25 Thread Veerappan Saravanan
Help! When writing your own appender, is this is the correct/only way to capture the exception stack trace public void append(LoggingEvent event) { String buffer = layout.format(event); writer.write(buffer); if (event.throwableInformation != null) { writer.write(event.thr

RE: Log4j intialization problem

2001-04-23 Thread Veerappan Saravanan
Jeet, The config file that you have attached seems to be the one from log4j's examples. It doesn't have any of your domain specific configuration in it. It looks like you have defined a category called net.datalinx.NotificationServer.statelessSession.NSBean but haven't configured an appender to

RE: disabling logging using configuration files using the disable directive

2001-04-19 Thread Veerappan Saravanan
log4j.category.foo.bar=INFO, SERVERLOG would disable all debug statements. The idea is that all messages with less priority than what's mentioned in the above line will be ignored (not logged). -Van -Original Message- From: Otis Gospodnetic [mailto:[EMAIL PROTECTED]] Sent: Wednesday,

RE: Problems Using Log4J as a service on NT

2001-04-18 Thread Veerappan Saravanan
I don't know how log4j needs to be configured to work with weblogic console, but if you are using weblogic server as a service, then you would have to write your own weblogic appender. The following is a sample... public class WeblogicAppender extends AppenderSkeleton { private LogServic

RE: SNMP support in log4j

2001-04-11 Thread Veerappan Saravanan
missing something or did you confuse SMTP for SNMP? Speaking of SNMP, has anyone done any work on an appender which can issue SNMP traps? My boss was curious about this functionality. Thanks, Alan Veerappan Saravanan wrote: > Never mind, found the answer in version 1.04. There's a SNMP

RE: SNMP support in log4j

2001-04-10 Thread Veerappan Saravanan
Never mind, found the answer in version 1.04. There's a SNMPAppender under org.apache.log4j.net. It's been there since version 1.0 -Original Message----- From: Veerappan Saravanan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 10, 2001 1:25 PM To: '[EMAIL PROTECTED]' S

SNMP support in log4j

2001-04-10 Thread Veerappan Saravanan
Does log4j have snmp support? Can anyone point me to a location where I can find more information on it. Thanks Van - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]