Re: Initialize problem on linux machine

2006-05-18 Thread Curt Arnold
On May 18, 2006, at 2:19 PM, Christian Haase wrote: Have done a run with -Dlog4j.debug, but doesn't helps me: log4j: Trying to find [/work/fop/entwicklung/log4j.properties] using context classloader [EMAIL PROTECTED] log4j: Trying to find [/work/fop/entwicklung/log4j.properties] using [EMA

Re: Initialize problem on linux machine

2006-05-18 Thread James Stauffer
I think your properties file needs to be in your classpath. Is it? On 5/18/06, Christian Haase <[EMAIL PROTECTED]> wrote: Have done a run with -Dlog4j.debug, but doesn't helps me: log4j: Trying to find [/work/fop/entwicklung/log4j.properties] using context classloader [EMAIL PROTECTED] log4j:

Re: Initialize problem on linux machine

2006-05-18 Thread Christian Haase
Have done a run with -Dlog4j.debug, but doesn't helps me: log4j: Trying to find [/work/fop/entwicklung/log4j.properties] using context classloader [EMAIL PROTECTED] log4j: Trying to find [/work/fop/entwicklung/log4j.properties] using [EMAIL PROTECTED] class loader. log4j: Trying to find [/work/

Re: DailyRollingFileAppender extensions...

2006-05-18 Thread James Stauffer
This is extensively discussed. Options: log4j 1.3 or implement your own appender (easy to do). On 5/18/06, Barbalace, Richard <[EMAIL PROTECTED]> wrote: Hello. I am attempting to use a DailyRollingFileAppender with a logger. I like the concept, but the resulting formating of the file name is

Re: Which conversion character would log timezone ?

2006-05-18 Thread Curt Arnold
On May 18, 2006, at 5:47 AM, V Jayakumar wrote: In Log4j, which conversion character would help me to log the time zone along with the date. For example, %d{MMM dd HH:mm:ss.SSS} would help me to print the time as MAY 18 2006 12:12:34.234 I would like the see the time zone along wit

DailyRollingFileAppender extensions...

2006-05-18 Thread Barbalace, Richard
Hello. I am attempting to use a DailyRollingFileAppender with a logger. I like the concept, but the resulting formating of the file name is undesireable. I am using a simple and common specification: log4j.appender.MONITOR=org.apache.log4j.DailyRollingFileAppender log4j.appender.MONITOR.File

Re: Changing log name???

2006-05-18 Thread Kailash KN
Thanks a million Norbert, i shall try it!!! I owe you one... :-) Thanks & Regards, Kailash.K.N. Original Message - From: "Norbert Toth-Gati" <[EMAIL PROTECTED]> To: "Log4J Users List" Sent: Thursday, May 18, 2006 5:05 PM Subject: Re: Changing log name??? So follow this: public cl

Re: Which conversion character would log timezone ?

2006-05-18 Thread log4j_rocks
From the PatternLayout Javadoc: The date format specifier admits the same syntax as the time pattern string of the SimpleDateFormat. So, you would use a "z" to get the timezone. On May 18, 2006, at 6:47 AM, V Jayakumar wrote: * Replies will be sent through Spamex to log4j-user@logging.apa

Re: Changing log name???

2006-05-18 Thread Norbert Toth-Gati
So follow this: public class YourAppender extends org.apache.log4j.RollingFileAppender { public void setFile(final String filename) { String year = Integer.toString(Calendar.getInstance().get( Calendar.YEAR)); String month = Integer.toString(Calendar.getInstance().get( Calendar.MON

Re: Changing log name???

2006-05-18 Thread Kailash KN
Thanks Norbert, but i have no clue as to how i implement, as mentioned earlier i have wasted two days on it, and finally i gave up, did'nt wanna waste time on it again!!! :-) If you could help me with it, i'd be grateful!!! :-) Thanks & Regards, Kailash.K.N. # 71, 4th Floor, Sona Towers, Mille

Is it possible to log the sequence number

2006-05-18 Thread V Jayakumar
Is there any conversion character which would help to log the sequence number of the message in the log file ? For example, my code looks something like, logger.log ("Aloha"); logger.log ("Hello There"); I want the output in the log file as 1 Aloha 2 Hello There Thanks in advance for your he

Re: Changing log name???

2006-05-18 Thread Norbert Toth-Gati
I think this is not supported yet by log4j version 1.2.x, so you should create your own implementation, extending RollingFileAppender. Regards Norbert On 5/18/06, Kailash KN <[EMAIL PROTECTED]> wrote: Hi, Attached is the log4j.xml document, in which the name of the debug file is "*debug.log*"

Which conversion character would log timezone ?

2006-05-18 Thread V Jayakumar
In Log4j, which conversion character would help me to log the time zone along with the date. For example, %d{MMM dd HH:mm:ss.SSS} would help me to print the time as MAY 18 2006 12:12:34.234 I would like the see the time zone along with the date as MAY 18 2006 12:12:34.234 BST Could you

Changing log name???

2006-05-18 Thread Kailash KN
Hi, Attached is the log4j.xml document, in which the name of the debug file is "debug.log", but i want the file to be name as "dd-mm--debug.log". How do i achieve this??? I'm stuck with this for almost 2 days now. Plz help me out.   Thanks & Regards, Kailash