Re: How do I configure Log4J to send different levels to different appenders

2007-07-04 Thread Norbert Toth-Gati
07, Mikael Ståldal <[EMAIL PROTECTED]> wrote: Norbert Toth-Gati wrote: > You may try to configure the following categories: > > > > > > > > > > > > > > > > It do

Re: How do I configure Log4J to send different levels to different appenders

2007-07-04 Thread Norbert Toth-Gati
Hi Mikael, You may try to configure the following categories: You may need to configure all the thirdparty logs to end up in the following appenders: Hope that hel

Re: how to define my own log file name

2006-09-18 Thread Norbert Toth-Gati
Hi, A good approach as you said, would be to extend the appender you need. Regards, Norbert On 9/18/06, kingwell <[EMAIL PROTECTED]> wrote: Hi all, I want to define the log file name pattern like mmdd-mylog.log, how to do so using log4j? As the DailyRollingFileAppender is just append the

Re: network using appenders when network is down

2006-08-16 Thread Norbert Toth-Gati
And how can I check the networking and call the suitable appender without writing my own appender? This is implementation decision. Is there any possibility to make this ckeck from log4j configuration (properties or xml file)? I don't know of any Or maybe I can catch the exception of Soc

Re: network using appenders when network is down

2006-08-16 Thread Norbert Toth-Gati
Hi, a possible solution for not lossing messages in case of LAN being down would be to use an other appender (FileAppender) in such cases. Either you check if there is network connection and continue as usually, if there is, or use a FileAppender in case of a problem, either you subclass the need

Re: Changing log name???

2006-05-18 Thread Norbert Toth-Gati
& Regards, Kailash.K.N. # 71, 4th Floor, Sona Towers, Miller's Road, Bangalore - 560 052 email : [EMAIL PROTECTED] Ph : +91-9886634958 +91-80-41327370 URL: www.thbs.com - Original Message - From: "Norbert Toth-Gati" <[EMAIL PROTECTED]> To: "Log4J User

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*"

Re: Defining fileappender in log4j.xml

2006-05-09 Thread Norbert Toth-Gati
Just simply use: Regards, Norbert On 5/9/06, ks <[EMAIL PROTECTED]> wrote: I use log4j.xml to log to file as bellow. How can I log to a file in a directory called "folder" which is a sublevel below default. The below code only create a file called "folder.workshop_test.log" and not creatin

dailyrollingfileappender - roll at given hour

2006-04-24 Thread Norbert Toth-Gati
Hi, Is there a possibility to set the rolling of a file at a given hour, for ex. at 15:00 hours? Is this feature supported already? Thanks in advance, Norbert

Re: RollingFileAppender - File not created

2006-04-06 Thread Norbert Toth-Gati
using Eclipse and the LOG.debug statement is > executed... I'm running this code from within a servlet...? > > if( LOG.isDebugEnabled() ) { > LOG.debug( "SendSMS.sar: The mediaURL is " + mediaURL ); > } > > -Original Message- > From: Norber

Re: RollingFileAppender - File not created

2006-04-06 Thread Norbert Toth-Gati
Hi Rob, you should specifiy the File property as one of the following: log4j.appender.A1.File=c:/SMSTest.log or log4j.appender.A1.File=c:\\SMSTest.log This is a specific problem for MS Windows platform. Regards, Norbert On 4/6/06, Rob Elliott <[EMAIL PROTECTED]> wrote: > Here is my properties f

rename log file at start of application server ...

2006-04-06 Thread Norbert Toth-Gati
Hi, so it is not overwritten. I found a thread earlier discussing this problem, " >From "jerome moliere" <[EMAIL PROTECTED]> Subject Re: Log File Name !! DateWed, 23 Feb 2005 13:33:56 GMT > I think RollingFileAppender does that except that it does it by size, > not by run.

Re: log file is huge

2006-03-16 Thread Norbert Toth-Gati
You should try to break down the big log file into different log files, which will save messages for a specific category - these may be groupped by packages, or the way you think it will make more sense. You may not need a cool book that teaches it, you have to figure it out which log messages mak

Re: where do you put the log4j.properties in J2EE?

2006-02-07 Thread Norbert Toth-Gati
Hi Kameron, In case you are using an application server with your system, I would suggest you place your log4j configuration file in the app. servers configuration directory. For example, in case of using JBoss, you may place it jboss-4.0.1sp1\server\..\conf directory. Hope that helps, Norbert O