RE: Using logger in libraries

2006-07-28 Thread Jitendra Kharche
Thanks for your valuable thoughts. Regards, Jitendra Kharche Geometric Software Solutions Co. Ltd. Work: +91-20-2290 6351 This e-mail communication and any attachments are privileged and confidential and intended only for

RE: Using logger in libraries

2006-07-28 Thread Jitendra Kharche
libraries Use automatic configuration so the the user of the library can change the configuration and don't include the log4j.jar or classes in your jar. On 7/28/06, Jitendra Kharche <[EMAIL PROTECTED]> wrote: > Hi, > > I am writing a library and want to know any practice followed

Using logger in libraries

2006-07-28 Thread Jitendra Kharche
Hi, I am writing a library and want to know any practice followed to use logger in a library. Thanks in advance. Regards, Jitendra

RE: Reload config file

2006-06-30 Thread Jitendra Kharche
said appender still "exists" and is configured as per the old config. (somebody please correct me if I'm wrong :) On 6/30/06, Jitendra Kharche <[EMAIL PROTECTED]> wrote: > Can I reload the log4j configuration during runtime? > I am using DOMConfigurator.config

Reload config file

2006-06-30 Thread Jitendra Kharche
Can I reload the log4j configuration during runtime? I am using DOMConfigurator.configure(file-path) to load the log4j configuration when my app starts. If I change the log level and reload the configuration by calling DOMConfigurator.configure(file-path) again without shutting down the application

RE: RollingFileAppender does not roll

2005-09-14 Thread Jitendra Kharche
Thursday, September 15, 2005 3:07 AM To: Log4J Users List Subject: RE: RollingFileAppender does not roll Make sure you don't have multiple instances running Regards, O -Original Message- From: Jitendra Kharche [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 14, 2005 9:32 AM To

RE: Re[2]: RollingFileAppender does not roll

2005-09-14 Thread Jitendra Kharche
ed, 14 Sep 2005 14:37:08 -0700 "Otto Leung" <[EMAIL PROTECTED]> wrote: > Make sure you don't have multiple instances running > > Regards, > O > > -Original Message- > From: Jitendra Kharche [mailto:[EMAIL PROTECTED] > Sent: Wednesday, Septembe

RE: RollingFileAppender does not roll

2005-09-14 Thread Jitendra Kharche
your logfile manually, if can't, may be your threaed class dosen't close the logfile properly. On Tue, 13 Sep 2005 14:49:16 +0530 "Jitendra Kharche" <[EMAIL PROTECTED]> wrote: > Hi, > > I am facing a problem with DailyRollingFileAppender. It does not roll.

RollingFileAppender does not roll

2005-09-13 Thread Jitendra Kharche
Hi, I am facing a problem with DailyRollingFileAppender. It does not roll. When Log4j tries to roll the file at midnight, following error occurs [9/13/05 0:00:00:195 GMT+05:30] 5ad73074 SystemErr R log4j:ERROR Failed to rename [C:/logs/debug-log.txt] to [C:/logs/debug-log.txt.2005-09-12].

RE: log4j:ERROR... Please Help.

2005-09-01 Thread Jitendra Kharche
Other way is to explicitely tell log4j to use this file as follows PropertyConfigurator.configure("abs-path-of-config-simple.properties"); ~Jitendra -Original Message- From: Harp, George [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 8:49 PM To: 'Log4J Users List' Subject:

Chainsaw: Merge log files

2005-08-28 Thread Jitendra Kharche
Hi, I have a distributed application that writes log on two different machines. My app processes event occured in the system. The event is triggered at one end and processed at both ends. I want to merge the logs generated at either side and group them for displaying. For grouping I use MDC as t

RE: Log4j, websphere, rad, and log4j.xml location

2005-08-24 Thread Jitendra Kharche
Hi, I am using Websphere to deploy my enterprise application. I put my log4j.xml file in WAS_HOME/properties directory and it works fine. I don't know whether this is a correct way but this issue is more serious for an ear that for a war. Jitendra -Original Message- From: Schuweiler, J

RE: Need properties files example for multiple output files

2005-08-09 Thread Jitendra Kharche
Hi Rick, I have a similar requirement. But I am using xml version of log4j config file. When I tried to convert this into an xml config file, I stucked at one point. In xml file we define Appender and then provide appender-ref in logger defination. Whereas in the configuration given by you, fir

RE: Embaded database in Websphere App Server 5.0

2005-07-25 Thread Jitendra Kharche
>IBM's info centre is the best place to go and look for WAS issues. > >http://publib.boulder.ibm.com/infocenter/wasinfo/v5r0/index.jsp > > >-Original Message- >From: Jitendra Kharche [mailto:[EMAIL PROTECTED] >Sent: 25 July 2005 10:35 >To: Log4J Users Lis

Embaded database in Websphere App Server 5.0

2005-07-25 Thread Jitendra Kharche
Hi, First of all sorry for this topic in this list. But if anybody knows it please help me. Does Websphere App Server 5.0 has any embeded database within it? If yes, which database? Also it is good if someone points me to some good resources for using it. Regards, Jitendra

RE: Where to set exernal property referred to in log4j.properties

2005-06-09 Thread Jitendra Kharche
ies if you want it changed instead of changing the environment variable? Can you tell us something about your requirements. Maybe there are alternative solutions... Martijn Jitendra Kharche wrote: >Hi Martijn and Jake, > >Thanks guys. This is a very useful information. > >Jake, I do

RE: Where to set exernal property referred to in log4j.properties

2005-06-09 Thread Jitendra Kharche
Hi Martijn and Jake, Thanks guys. This is a very useful information. Jake, I don't want to to use the -D option solution for some reason. Martijn, Actually I am doing the same thing in a different way to make same log4j configuration available to EJB and the webapp. I have put the log4j.xml in

RE: Where to set exernal property referred to in log4j.properties

2005-06-07 Thread Jitendra Kharche
Hi, Thanks Jake and James. I have noticed following: I have a J2EE app packaged as EAR file that has a EJB module, a WEB module and some AppClient modules. After I have done the steps I discussed in my last mail, from the websphere logs I came to know that the EJB module is getting initialized

RE: Where to set exernal property referred to in log4j.properties

2005-06-07 Thread Jitendra Kharche
Hi Jacob, What is autoconfiguration? I am using the same solution as you have suggested below for the same problem that I want the log file path to contain ${MY_APP_HOME} e.g. ${MY_APP_HOME}\logs\logfile.log. But it is not working. I am using Websphere5.0. 1. I have set an OS environment variable

RE: How to specify log file path using env variable

2005-04-26 Thread Jitendra Kharche
st Subject: RE: How to specify log file path using env variable Quoting Jitendra Kharche <[EMAIL PROTECTED]>: > > Hi Jacob, > > I appreciate your response. Sorry for the delay to reply back since I > was out of the town for last 4 days. > I am sorry, your solution does not fi

RE: How to specify log file path using env variable

2005-04-25 Thread Jitendra Kharche
Never mind. I got it working. Jitendra -Original Message- From: Jitendra Kharche [mailto:[EMAIL PROTECTED] Sent: Monday, April 25, 2005 6:12 PM To: Log4J Users List Subject: RE: How to specify log file path using env variable Hi Jacob, I appreciate your response. Sorry for the

RE: How to specify log file path using env variable

2005-04-25 Thread Jitendra Kharche
Kjome [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 7:38 PM To: Log4J Users List Subject: RE: How to specify log file path using env variable Quoting Jitendra Kharche <[EMAIL PROTECTED]>: > Hi Jake, > > Thanks. The way you have suggested is another good way. But my pr

Writing log in xml format

2005-04-25 Thread Jitendra Kharche
Hello List, Can I write the log in an xml format using Log4j? If yes, please provide a simple example configuration or necessary steps. Regards, Jitendra

RE: How to specify log file path using env variable

2005-04-20 Thread Jitendra Kharche
ist Subject: RE: How to specify log file path using env variable Quoting Jitendra Kharche <[EMAIL PROTECTED]>: > Hi Paul, > > Thanks for the help. > This is the best way fot standalone java applications. Whereas I am > having a web application and I don't want to change t

RE: How to specify log file path using env variable

2005-04-19 Thread Jitendra Kharche
embed the MY_APP in your log4j configuration file. cheers, Paul Jitendra Kharche wrote: >Hi All, > >I am using log4j for looging my applocation log on windows. The log >file path I have specified in the log4j.xml file is currently a windows >path e.g. C:\myapp\logs\myapp.log. &

How to specify log file path using env variable

2005-04-19 Thread Jitendra Kharche
:\myapp). How can I do that? Furthermore, this will help me in migration my application from windows to unix or other OSs. Please help. Regards, Jitendra Kharche

Customizing pattern

2005-03-03 Thread Jitendra Kharche
Hi All, I am using the pattern "Date Priority [Category] Message\n". I want to modify this pattern to add a key as a prefix to each log statement e.g. "Key Date Priority [Category] Message\n". I want to use this key to group log statements. Log statements having same key will be grouped and indic

RE: chainsaw-LogFilePatternReceiver

2005-02-03 Thread Jitendra Kharche
Hi, I am also new to using Chainsaw, infact I studied it yesterday and using it to view my log file. What I guess is that you have given the logFormat information in a wrong way. You are supposed to write the logFormat in KEYWORDS and not as you have written in your properties file. In other

Help to use Chainsaw

2005-02-02 Thread Jitendra Kharche
Hi, I want to use chainsaw that is bundled within log4j1.2.8. How should I proceed? The log4j jar is within the Websphere installation. Regards, Jitendra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma