Re: How to change the type of logging without restarting the applica tion

2001-08-20 Thread Robert Leftwich
At 11:40 PM 19/08/2001 -0700, Sajid Shaikh wrote: >Is there a way to change the type of logging without restarting the >application. We are using a property file to specify the categories and >priorities when the application starts. If we change this property file is >there a way that log4j will a

Re: Setting different patterns for priorities

2001-08-17 Thread Robert Leftwich
At 10:03 AM 18/08/2001, DARYL HANDLEY wrote: >Has anyone figured out a way to configure log4j so that the log pattern will >be influenced by the priority of the message logged ? > >When I log a DEBUG message, I want to print out the class name, method, and >line number that the logging message occ

RE: Assigning Layouts to Priorities

2001-08-14 Thread Robert Leftwich
At 04:11 PM 15/08/2001, Chien Wei Tan wrote: >hi rob, > >thanks... i understand how to log different priorities to different >appenders... but i m actually after logging different layouts to different >priorities... any ideas? That's what Ceki is suggesting, something along the lines of (note th

Re: newbie: How to distinguish log outputs from different instances of the same class?

2001-08-14 Thread Robert Leftwich
At 04:08 PM 15/08/2001, Chien Wei Tan wrote: >Hi, > >How would I use log4j to distinguish the log messages coming from different >instances of the same class? > >Eg. MyClass m1 = new MyClass(); // output log messages to MyLog.log > MyClass m2 = new MyClass(); // output log messages to MyLog.

Re: Assigning Layouts to Priorities

2001-08-14 Thread Robert Leftwich
At 11:00 AM 15/08/2001, Chien Wei Tan wrote: >Hi, > >Would anyone know if it is possible to define different layouts (including >conversion patterns) for different priorities, (either through the >configuration file, or in the actual log4j classes), given a specific >category. > >eg. MyApp is a

Re: Default Appender/root?

2001-07-23 Thread Robert Leftwich
At 06:39 AM 24/07/2001, Mark Womack wrote: >I know the documentation says that log4j makes no assumptions about the >logging environment, and so when it cannot find a valid log4j.configuration >property setting, it reports the error and does nothing...BUT is there a way >where you can have it set

RE: tomcat and log4j

2001-07-20 Thread Robert Leftwich
At 05:14 PM 20/07/2001, [EMAIL PROTECTED] wrote: >thanks for the answers .. > >if i decide to use only one log4j.properties with tomcat , where can i put >this log4j.properties file >and how can i use logging system in my beans ? in every bean's method i >have to set like that > > >PropertyConfi

Re: Disable/Enable Logging

2001-07-19 Thread Robert Leftwich
At 11:09 PM 19/07/2001, Gogia, Nitin wrote: >Hi, >I wud like to know if the user can enable/disable logging at runtime. One approach is to call Category.getDefaultHierarchy().disableAll(); in your code to turn of all logging by default. The user can override this by setting the log4j.disableOv

Re: Disable/Enable Logging

2001-07-19 Thread Robert Leftwich
At 11:09 PM 19/07/2001, Gogia, Nitin wrote: >Hi, >I wud like to know if the user can enable/disable logging at runtime. From the FAQ How can I reduce the computational cost of debug and info statements? For public releases of your code, calling the BasicConfigurator.disable(pri) method will d

Re: WLS server, hot-deploy, & configuring two different extended classes

2001-07-18 Thread Robert Leftwich
At 12:53 AM 19/07/2001, [EMAIL PROTECTED] wrote: >BACKGROUND:snipped > >QUESTION: > >Using the log4j.properties file alone, how can I properly configure this mess? >The way it works now, >the WLSLoginCategory set gets loaded as root and every class in the web-app >which uses >the other set of WebA

Re: Multiple components configuring log4j (Warning - long(ish) post)

2001-07-16 Thread Robert Leftwich
Does anyone have any thoughts on this issue ? Robert At 12:08 PM 11/07/2001, I wrote: >I have a question on the best way to handle configuring log4j when >multiple sub-systems/components each are using log4j. For example, if you >use Struts and Cactus in addition to your own code then there a

Re: use of log4j in a web app

2001-07-11 Thread Robert Leftwich
At 10:13 AM 12/07/2001, Carolyn Wasikowski wrote: >First: when should I configure Log4J? My Log4J experience, unfortunately, >far outweighs my JSP/servlet experience, but I'm guessing that all I need to >do is use a DOMConfigurator within the init() method of the first servlet >that gets loaded

Multiple components configuring log4j (Warning - long(ish) post)

2001-07-10 Thread Robert Leftwich
I have a question on the best way to handle configuring log4j when multiple sub-systems/components each are using log4j. For example, if you use Struts and Cactus in addition to your own code then there are 3 different users of log4j that may require specific things to be setup at configuration

Re: Log4j failing when large numbers of messages output?

2001-06-28 Thread Robert Leftwich
At 17:45 28/06/01, Robert Leftwich wrote: >I'll get back to you as soon as I can generate something useful! Well I generated something useful and it showed me the problem was in the Barracuda code - there was a recursive call to log some information at debug and info level that exhau

Re: Log4j failing when large numbers of messages output?

2001-06-28 Thread Robert Leftwich
s >Ctrl-Pause. When deadlock occurs could you see what that gives you? I'll get back to you as soon as I can generate something useful! Robert >Regards, Ceki > >At 16:29 28.06.2001 +1000, Robert Leftwich wrote: > >I am seeing what I think is log4j failing to handle a large nu

Log4j failing when large numbers of messages output?

2001-06-27 Thread Robert Leftwich
I am seeing what I think is log4j failing to handle a large number of log messages and wanted to check if anyone else has seen a similar problem before I spend time tracking it down (and I couldn't find anything similar mentioned in the archives). The scenario is Windows NT4+SP6, JDK 1.3.1, En