Re: Is there a way to reference and env. variable from log4j.xml?

2007-01-15 Thread James Stauffer
Can you change the command line? You could add "-Dlog_root=%log_root%" to copy it to a system property, which should be accessible. On 1/15/07, Reshat Sabiq <[EMAIL PROTECTED]> wrote: I'd like to do smt. like: %LOG_ROOT%/myLog.log ---

Re: log4j.properties

2007-01-15 Thread James Stauffer
It basically overlaps. On 1/15/07, Reshat Sabiq <[EMAIL PROTECTED]> wrote: James Stauffer gmail.com> writes: > > Yes, log4j is only configured once. If you want each jar to have > isn't own config then you need to look into repository selectors. What happens when the code calls: P

Is there a way to reference and env. variable from log4j.xml?

2007-01-15 Thread Reshat Sabiq
I'd like to do smt. like: %LOG_ROOT%/myLog.log - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: log4j.properties

2007-01-15 Thread Reshat Sabiq
James Stauffer gmail.com> writes: > > Yes, log4j is only configured once. If you want each jar to have > isn't own config then you need to look into repository selectors. What happens when the code calls: PropertyConfigurator.configure(log4jPropertiesFileURL); after auto-configurati

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Jacob Kjome
Quoting dirk ooms <[EMAIL PROTECTED]>: > On Monday 15 January 2007 19:04, Jacob Kjome wrote: > > The file should look something like this... > > > > > > http://logging.apache.org/log4j/"; > > debug="false" threshold="debug"> > > AFAIK the tag was used in version 1.2.x, but it is > inproper xml.

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread dirk ooms
On Monday 15 January 2007 19:04, Jacob Kjome wrote: > The file should look something like this... > > > http://logging.apache.org/log4j/"; > debug="false" threshold="debug"> AFAIK the tag was used in version 1.2.x, but it is inproper xml. In 1.3 this was corrected (or at least an attempt was ma

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread dirk ooms
> I already have gone through the document.My question is in log4j 1.2.8 i > was using the following for DailyRollingFileAppender to map to > configuration file : DOMConfigurator.configure(mLOG4JCONFIGFILE); > where mLOG4JCONFIGFILE was the property where i mentioned the location of > xml file.

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Jacob Kjome
The file should look something like this... http://logging.apache.org/log4j/"; debug="false" threshold="debug"> Jake Quoting Surya Poola <[EMAIL PROTECTED]>: > Hi, > Iam getting the following warnings if iam using DOM Configurator and iam > not getting the log file creat

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Surya Poola
Hi, Iam getting the following warnings if iam using DOM Configurator and iam not getting the log file created: log4j:WARN Continuable parsing error 2 and column 16 log4j:WARN Document root element "configuration", must match DOCTYPE root "null". log4j:WARN Continuable parsing error 2 and

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread James Stauffer
Even though DOMConfigurator is depreciated it may still work and it may be worthwhile to try it to see if your config is ok. On 1/15/07, Surya Poola <[EMAIL PROTECTED]> wrote: Dirk, Thanks for your help,but iam sorry to query you once more: I already have gone through the document.My quest

Logging stops after hours working

2007-01-15 Thread Cristian Jansenson
I am running an application that uses log4j version 1.2.9. The application is running on Java 1.5.0.9 for Linux 64-bit version. After minutes or hours of running and logging, log4j stops logging. The console shows the following message, which partially explains the reason: log4j: Hierarchy t

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Surya Poola
Dirk, Thanks for your help,but iam sorry to query you once more: I already have gone through the document.My question is in log4j 1.2.8 i was using the following for DailyRollingFileAppender to map to configuration file : DOMConfigurator.configure(mLOG4JCONFIGFILE); where mLOG4JCONFI

Re: Want to maintain different logs for different users, in different files on the basis of user type

2007-01-15 Thread James Stauffer
How many different "types of users" do you have? Are all types known ahead of time? On 1/15/07, Gajendra Pingalkar <[EMAIL PROTECTED]> wrote: In my application, currently we r maintaining all logs in same file of Log4j. Instead of that, i want to maintain logs seperatly depend-upon his user-typ

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Dirk Ooms
Rohan, have a look at the 'Default Initalization Procedure' at http://logging.apache.org/log4j/docs/manual.html it explains how log4j will find your config file. dirk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Surya Poola
Hi Dirk, But how can i map to the log4j.xml file without use of joranconfigurator.I hope we need one configurator which maps to configuration file. So please let me know the procedure to map log4j.xml file which resides in specific location, or else the right usage of configurator for R

Want to maintain different logs for different users, in different files on the basis of user type

2007-01-15 Thread Gajendra Pingalkar
In my application, currently we r maintaining all logs in same file of Log4j. Instead of that, i want to maintain logs seperatly depend-upon his user-type. Whenever a specific user has get login, his information has been maintain in a specific file, all other user has get login, same type as pre

Re: cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Dirk Ooms
Rohan, you can use the wizard http://wizardforge.org/pc?action=showVersion&id=28 to generate a valid log4j.xml for your goal you just have to create a logegr in your code (Logger.getLogger()), no need for the JoranConfigurator stuff. dirk --

cannot write to a file with rollingfileappender in log4j1.3

2007-01-15 Thread Surya Poola
Hi, Iam new to log4j usage.My requirement is to wriite a log file and roll over monthly, but I want the file name that iam logging to be identified with date like xyz_01-2007.csv before rollover. Iam using log4j1.3 alpha-8 with rollingfileappender but file is not created and iam no