Re: Using a specific appender at runtime and calling it by name?

2003-06-12 Thread Michael Schaefer
I removed the layout sections and other initialization properties to make the post more compact. Here are my layout and other settings: log4j.rootLogger=DEBUG, stdout, Default log4j.logger.CWBCImport=DEBUG, requestLog # Setup stdout appender log4j.appender.stdout=org.apache.log4j.ConsoleAppender

RE: Custom loggers

2003-06-12 Thread Shapira, Yoav
Howdy, What's your use-case / what are your requirements for this custom logger? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Christian Cryder [mailto:[EMAIL PROTECTED] >Sent: Thursday, June 12, 2003 3:04 PM >To: LOG4J Users Mailing List >Subject: Custom loggers >

RE: problems with log4j & logging taglib

2003-06-12 Thread Chris Huisman
Sorry, A portion of my message was cut off (cut and paste problem). Here is what i had intended: Hello, I am having trouble getting my jsps to use the log taglib, using Tomcat 4.1.24, under linux with the latest log4j and logging taglib. I can initialize and use log4j from a servlet, but when

problems with log4j & logging taglib

2003-06-12 Thread Chris Huisman
and the context for my app in servlet.xml and my log4j.properties file: log4j.rootLogger=DEBUG, A1 log4j.appender.A1=org.apache.log4j.FileAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.file=../logs/myapp.log # Print the date in ISO 8601 format log4j.append

Re: Custom loggers

2003-06-12 Thread Jacob Kjome
Hi Christian, Search the archives for discussions on custom loggers using wrappers vs inheritance. Actually, this was just discussed rather recently. The wrapper the recommended way to go. Jake At 01:04 PM 6/12/2003 -0600, you wrote: Hi folks, Supposing I had a need to create and use a cust

Re: attach appender to AsyncAppender in config file....]

2003-06-12 Thread Ceki Gülcü
The AsyncAppender cannot be set a config file in properties format. This is documented in the javadocs for PropertyConfigurator. The PropertyConfigurator does not handle the advanced configuration features supported by the DOMConfigurator such as support for Filters, custom ErrorHandlers, nes

Custom loggers

2003-06-12 Thread Christian Cryder
Hi folks, Supposing I had a need to create and use a custom logger (ie. extending the current logger), how would I go about doing that? Or is it a bad idea? I know we did this at one point in the past (several years ago), but it was kind of painful, and we were able to go away from it. But now we

RE: Problem configuring log4j with common classes

2003-06-12 Thread Carlos Roberto Yaconi Hitschfeld
Finally it worked!!! Thank you very much for your help. Best Regards! Carlos Yaconi Hitschfeld -Mensaje original- De: Jacob Kjome [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 12 de Junio de 2003 13:51 Para: Log4J Users List Asunto: RE: Problem configuring log4j with common classes

attach appender to AsyncAppender in config file....]

2003-06-12 Thread Vivek Kapadekar
Does someone know the trick for this? How do I attach an appender to AsyncAppender in the config file ( log4j.properties )? Thanks -Viv

RE: Problem configuring log4j with common classes

2003-06-12 Thread Jacob Kjome
Depends where the properties file exists. For example (in examples below MyClass.class is used so you can access this behavior in static contexts as well as instance contexts. If you have a current instance, you can use this.getClass())... //loads my.properties in the same relative package lo

Filter rules for DOMConfigurator and NDC

2003-06-12 Thread Joerg Eggink
Dear all I have one question about NDC element and Filter rules. Is it possible to make a StringFilter for a NDC value ? Example: Following filter rule for a file appender And NDC.push ("User:" +1234); Does log4j write only the statements in the log file with this String.

Re: Problem configuring log4j with common classes

2003-06-12 Thread Erik Price
Carlos Roberto Yaconi Hitschfeld wrote: Thanks... But, can you give some example please?? I'm newbie with log4j and I don't know how to do it. Erik

Re: Using a specific appender at runtime and calling it by name?

2003-06-12 Thread Robert . Raftery
Michael, I don't know if this is significant or not, but it doesn't appear that you have a layout specified for the Appender that is being used by the "SomeUniqueString" Logger. /bob Please respond to "Log4J Users List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] cc: Subject:Using

RE: Problem configuring log4j with common classes

2003-06-12 Thread Carlos Roberto Yaconi Hitschfeld
Thanks... But, can you give some example please?? I'm newbie with log4j and I don't know how to do it. Thank you! Atte, Carlos Yaconi Hitschfeld Anexo: 8-4619 Teléfono: 388-4619 -Mensaje original- De: Jacob Kjome [mailto:[EMAIL PROTECTED] Enviado el: Jueves, 12 de Junio de 2003 12:45 P

RE: Problem configuring log4j with common classes

2003-06-12 Thread Jacob Kjome
If you load the properties file with a file name, it will look for the file in the location where the java process was started unless you provide an absolute path to the file. The better way to do this is load it off the classloader and then provide it as an inputstream or URL to the configure

RE: Problem configuring log4j with common classes

2003-06-12 Thread Carlos Roberto Yaconi Hitschfeld
Thanks Alison!! Now I'm almost ready with my configuration, but the last (I hope) problem is where to put the log4j.properties for the common classes. I've tried putting the file inside the jar, on the root folder, and initializing it with the next sentence on a static block, in a class located

Re: DailyRollingFileAppender in multi-threaded env (log4j-1.1.3)

2003-06-12 Thread Avner BenHanoch
i never used daily-rolling-file-appender, but I don't think this is the problem. My personal guess is that you'll get same results with any FileAppender and most chances with ANY appender. I believe that you have synchronization problem with the rendering of the log message. check sync proble

DailyRollingFileAppender in multi-threaded env (log4j-1.1.3)

2003-06-12 Thread Liu, Yigong, ALABS
Hi there, Could some experts help me with the following question? I am using DailyRollingFileAppender and when i just has one client thread dump the log messages, it is fine. But when i have 2 threads dump the logs, there seems some blocking issues - the whole application supposed to finish in

attach appender to AsyncAppender in config file....

2003-06-12 Thread Vivek Kapadekar
Hi How do I attach an appender to AsyncAppender in the config file ( log4j.properties )? In general what is the semantics or a set of all valid entries that can go in the log4j.properties file? Thanks -Viv

RE: Strange behaviour with log4j and weblogic

2003-06-12 Thread Ebersole, Steven
Its a custom package we wrote to maintain logins between different apps within weblogic. Here it basically binds sessions between the web-app and the EAR file. Do you think changing configureAndWatch() to simply configure() would have any effect? -Original Message- From: Ceki Gülcü [ma

Re: Strange behaviour with log4j and weblogic

2003-06-12 Thread Ceki Gülcü
I've used Weblogic 6.1 sp2 in dev mode but always without configureAndWatch. Which package is redirected to the console? At 09:52 AM 6/12/2003 -0500, you wrote: My set up is that weblogic (6.1sp3) is being run in development mode. I have an EAR deployment and then a web app deployed in "expanded

RE: Strange behaviour with log4j and weblogic

2003-06-12 Thread Ebersole, Steven
P.S. The web-app was initially deployed (and still is on staging and production environments) in WAR format. There was no problem with that set up... > -Original Message- > From: Ebersole, Steven > Sent: Thursday, June 12, 2003 9:53 AM > To: Log4j user list (E-mail) > Subje

Strange behaviour with log4j and weblogic

2003-06-12 Thread Ebersole, Steven
My set up is that weblogic (6.1sp3) is being run in development mode. I have an EAR deployment and then a web app deployed in "expanded directory format". In weblogic, this setup is nice for development because it lets me move class files out to the web-app without having to restart the server fo

Using a specific appender at runtime and calling it by name?

2003-06-12 Thread Michael Schaefer
I'm reposting this question since I wasn't a member of the mailing list when I posted this on Yahoo so I don't think it showed up. I have the following settings in my log4j.properties file: log4j.rootLogger=DEBUG, stdout, normal log4j.logger.SomeUniqueString=DEBUG, requestLog # Setup stdout app