dtd available from the web?

2001-06-28 Thread Mark Womack
Is the current log4j DOM dtd available from a global location on the web? I would prefer to use that url in my DOCTYPE element instead of a url local to my specific machine or setup. I downloaded the copy referenced in the api documentation. That url doesn't seem like a global location that

RE: Ways to reload configuration

2001-07-02 Thread Mark Womack
I was under the impression that log4j configuration can already be changed on the fly, during the runtime of the application. I set up our web apps to change their settings when accessed through a special url. A parameters is passed in that specifies a config file to read using the

RE: dtd available from the web?

2001-07-02 Thread Mark Womack
I never got a reply to my original message. Is the dtd not available from a static location from the Apache site? So, everyone includes a custom path in the DOCTYPE of their xml configuration files? Thanks, -Mark -Original Message- From: Mark Womack Sent: Thursday, June 28, 2001 6:14

RE: dtd available from the web?

2001-07-02 Thread Mark Womack
Duh. This is how I am supposed to do this, right? !DOCTYPE log4j SYSTEM log4j.dtd It finds this file at org/apache/log4j/xml/log4j.dtd located inside the log4j.jar. OK, that is better than accessing a dtd across the web. -Mark -Original Message- From: Mark Womack Sent: Monday, July

RE: Additivity flag

2001-07-05 Thread Mark Womack
Thomas, Here is an example of using the additivity flag in the xml format: category name=myCategory additivity=false priority value=info/ appender-ref ref=myAppender / /category As to what properties are available, I would suggest looking at the api documentation. Any

JSR47?

2001-07-10 Thread Mark Womack
Has anyone heard about any movement or changes regarding JSR47? -Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Interpolation in xml config files

2001-07-19 Thread Mark Womack
( btw, how do I escape the apostrophes ) apos; should work in xml? Just like lt; (for ) and gt; (for ). hope it helps, -Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Default Appender/root?

2001-07-23 Thread Mark Womack
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 up something as a default? For example, if I

RE: Default Appender/root?

2001-07-26 Thread Mark Womack
To: LOG4J Users Mailing List Subject: Re: Default Appender/root? 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

Configuring from an http url?

2001-07-26 Thread Mark Womack
Does anyone out there do this? Instead of specifying a file:/ type url, I am trying to specify an http:/ type url. But I get a FileNotFoundException. But the url is accessible from a browser on the same machine. And it happens with a url that ends in .xml or .jsp. ? -Mark Supercharge your

RE: Configuring from an http url?

2001-07-26 Thread Mark Womack
I think I figured it out, and it is not a problem with log4j. I was trying to access a url from the localhost as the servlet was being initialized (as part of the localhost initialization). In that situation, you can't really expect the localhost to serve pages if it isn't fully initialized.

RE: Detect already configured log4j

2001-08-14 Thread Mark Womack
Thomas, Here is some code I was given, and some that I wrote to do a very basic configuration. Regarding the class of the Configurator and doing the configuration, I would recommend looking at the static initializer in the Category class. I think it does what you want or will at least point

RE: [PATCH] DOMConfigurator.java

2001-08-14 Thread Mark Womack
Enclosed is a real cvs patch file, if that is preferred. -Mark -Original Message- From: Mark Womack Sent: Tuesday, August 14, 2001 10:56 AM To: 'LOG4J Users Mailing List' Subject: [PATCH] DOMConfigurator.java Enclosed is a modified version of DOMConfigurator.java, based

Output current settings?

2001-08-16 Thread Mark Womack
Is there some code in log4j to output the current category/appender setup? I was going to write my own code, but thought maybe something already exists to do this. Thanks, -Mark Supercharge your telephone! Write your VoiceXML Application for free at http://cafe.bevocal.com BeVocal Cafe - Rated

RE: Specifying config file reload interval in config file itself?

2001-08-16 Thread Mark Womack
time needs to be spent discussing this and implementing it better. Please review and comment. I think this is a neat feature and would like to work to get it into log4j if there is sufficient interest. -Mark -Original Message- From: Mark Womack Sent: Wednesday, August 15, 2001 11:12 AM

RE: Setting up XML configuration problems

2001-08-21 Thread Mark Womack
Title: Message What error are you getting? You might want to make the CONFIG_FILE a system property, that way you can change it at runtime. My guess is that "config.xml" is not a valid path to the file. You might need to fully qualify it like "file:c:/config.xml". Also, just as a note,

RE: Setting up XML configuration problems

2001-08-21 Thread Mark Womack
suggestions? Steven -Original Message-From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 1:54 PMTo: 'LOG4J Users Mailing List'Subject: RE: Setting up XML configuration problems What error are you getting? You might want to make

RE: Setting up XML configuration problems

2001-08-21 Thread Mark Womack
ration logger that I could possibly look at? Thanks for your help! Steven -Original Message-From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 2:15 PMTo: 'LOG4J Users Mailing List'Subject: RE: Setting up XML configur

RE: How to configure LOG4J

2001-08-22 Thread Mark Womack
Kaneda, 1) Yes, you have the right order, and understanding. 2 3) I think your settings for the categories are incorrect. I refer you to the short introduction found at http://jakarta.apache.org/log4j/docs/manual.html. Instead of: log4j.appender.stdout.category.com.foo=INFO you should

RE: log4j wrapper

2001-08-23 Thread Mark Womack
I also created a wrapper for Category, but instead of always calling the Category.getInstance() method, I instantiate the wrapper class and it stores a reference to the Category object. Then uses the reference in implementing the various methods. Doing it this way means that we create an object

RE: log4j wrapper

2001-08-23 Thread Mark Womack
In fact, this is how we started out, just extending Category. But then you end up importing the log4j classes that are used as parameters to the Category methods, and the abstraction/wrapping is not complete. In the (unlikely) event we replace log4j in the future, all we have to do is rework

RE: Revised Log4j interfaces

2001-08-24 Thread Mark Womack
Where is this proposal? I could not find it on the website. -Mark -Original Message- From: Cory Updyke [mailto:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 12:09 PM To: [EMAIL PROTECTED] Subject: re: Revised Log4j interfaces I have a couple of questions about an implementation

RE: When to call NDC::remove

2001-08-28 Thread Mark Womack
I'd really like to know what folks are doing for this if anything. I just tracked down a memory leak on our web application server, at it was related to the static references in the NDC. In tracking down the memory leak, I noticed that some HttpServletRequest objects were hanging about. I

RE: Looking for opinions...

2001-09-07 Thread Mark Womack
Another option is to use an NDC for the user information. NDC.push(user.id);...NDC.pop() - then any messages that are logged between the push and pop can contain the user.id in the message text. -Mark -Original Message- From: Ylan Segal [mailto:[EMAIL PROTECTED]] Sent: Friday, September

RE: Filter based in NDC

2001-11-28 Thread Mark Womack
Roland, It is simple to write your own filter subclass with specific logic in the decide method. Here is an example of a decide() method I wrote for a filter that would deny messages that had an empty NDC. You could easily modify this to look for a certain pattern (settable via a property on

Stack trace when logging exception?

2001-10-10 Thread Mark Womack
When logging an exception object, is there anyway to print out the stack trace information? Right now, it seems to only print the exception message. Is there a way to configure the output settings? -Mark - To unsubscribe,

RE: Stack trace when logging exception?

2001-10-11 Thread Mark Womack
Mike, Ken, thanks. I should have seen that. -Mark -Original Message- From: Michael Mason [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 11, 2001 1:52 AM To: 'LOG4J Users Mailing List' Subject: RE: Stack trace when logging exception? When logging an exception object, is there

RE: Sample usage of NDC in servlets.

2002-01-02 Thread Mark Womack
Pushing the session id is a pretty good use of the NDC in servlets, and this is a good example code. But be aware that you will need to call the NDC.remove() method periodically, otherwise you will end up with a huge memory leak over time. Do not ignore the notes in the api documentation. It

RE: Turning of conf file watching

2002-01-24 Thread Mark Womack
You can look at the code, but in the current version, there is no mechanism to stop a Watchdog after it is created and started. In fact, each time you call configureAndWatch(), it creates a new instance of a Watchdog. So, you can potentially have multiple Watchdogs watching the same file and

RE: Turning of conf file watching

2002-01-24 Thread Mark Womack
create a new one. Perhaps my approach is incorrect? It sounds like I should only call the configureAndWatch method once, say upon a successful user log-in? -Original Message- From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 1:09 PM To: 'Log4J Users List

RE: Turning of conf file watching

2002-01-24 Thread Mark Womack
: Thursday, January 24, 2002 2:05 PM To: 'Log4J Users List' Subject: RE: Turning of conf file watching How do I set the log4j.debug=true in my XML config file? What's the correct tag, etc.? -Original Message- From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 3:48 PM

RE: configuration parameter question

2002-01-28 Thread Mark Womack
As far as I know, your best hope at this point is to use the JavaDoc API information for the particular class you want to use in the configuration. Any setXXX() method is accessible as a parameter in the config file. There will be some documentation about what the property is for as well. You

RE: Logger subclass

2002-02-05 Thread Mark Womack
Are you looking at the 1.1.3 documentation or the 1.2 documentation? I don't think the Logger changes are in the 1.1.3 version and 1.2 is currently in alpha state. -Mark -Original Message- From: Nair, Ranjini [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 1:23 PM To:

RE: Logger subclass

2002-02-05 Thread Mark Womack
Message- From: Mark Womack [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 4:32 PM To: 'Log4J Users List' Subject: RE: Logger subclass Are you looking at the 1.1.3 documentation or the 1.2 documentation? I don't think the Logger changes are in the 1.1.3 version and 1.2

RE: stopping a socketnode-thread?

2002-02-26 Thread Mark Womack
// 5020 salzburg // austria |- | fon/fax +43/662/842 897 |- -Original Message- From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 8:29 PM To: 'Log4J Users List' Subject: RE: stopping a socketnode-thread? From looking at the SocketNode code, the run

RE: static vs instance member

2002-02-26 Thread Mark Womack
The only real difference is how many times you assign to this variable. As a static member, it is assigned only once. If it is an instance member then you have to assign it with every instance. As far as log4j is concerned, only one instance of the Logger (Category) object is created, no

RE: Good site! Questions

2002-03-04 Thread Mark Womack
Mark, You can download the log4j source code and look at the parsing code yourself. It is located in org.apache.log4j.aml.DOMConfigurator. And yes, you can include categories as part of the configuration file. Are you looking for information on how to structure the xml configuration file?

RE: log4j.jar vs log4j-core.jar in Oracle

2002-03-11 Thread Mark Womack
I don't know about the other log4j classes, but I have only needed xml related jars when using the DOMConfigurator. If you use the PropertyConfigurator, then crimson.jar and jaxp.jar should not be required. But maybe there are other dependencies I am unaware of. -Mark ps Your question was

RE: Runtime Enable/Disable Logging

2002-03-13 Thread Mark Womack
Navneen, Is there a way you can query to see if any configuration changes have been applied to the database? I ask because I have been working on a watchdog design that extends the configureAndWatch() mechanism. I would be very interested in seeing if a database version could be written using

RE: Runtime Enable/Disable Logging

2002-03-13 Thread Mark Womack
set in the code i.e LogManager.getLoggerRepository().setThreshold(XLevel.TRACE); Thanks NAveen -Original Message- From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 13, 2002 4:04 PM To: 'Log4J Users List' Subject: RE: Runtime Enable/Disable Logging Navneen

Category configuration bug?

2002-03-13 Thread Mark Womack
I am trying to track down some strange behavior that I see occasionally regarding the configuration of Categories. Maybe others have already encountered it. When our code starts, log4j configuration data is read and applied. Later, the configuration data changes and our program has a mechanism

RE: Category configuration bug?

2002-03-14 Thread Mark Womack
It's the price to pay in order to allow config file merging. One interesting feature would be to allow a reset instruction within the config file Yeah, I was thinking that too. The current behavior could stay as is, but a setting could be in the configuration file for a new reset behavior.

RE: Multiple output lines

2002-03-21 Thread Mark Womack
Do you have the an appender attached to a category and the root? This will print the same message twice. -Mark -Original Message- From: bryan hansen [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 11:35 AM To: [EMAIL PROTECTED] Subject: Multiple output lines Sorry I know

RE: configureAndWatch bug

2002-03-21 Thread Mark Womack
Winston, What you are describing is considered to be correct behavior, though I have to agree it seems a bit unexpected. If you look back a few days in the archive for this list, you will find a discussion about it. Basically, when the hierarchy is reconfigured, any categories that have been

RE: Forced logging

2002-03-25 Thread Mark Womack
Instead of using forcedLog, you can use something like this: public void status(Object message, Throwable t) { category.callAppenders(new LoggingEvent(FQCN, category, Priority.INFO, message, t)); } The above is a method we have to print status messages regardless of current logging

RE: configureAndWatch ?

2002-03-25 Thread Mark Womack
As mentioned, this method is supported on PropertyConfigurator and DOMConfigurator. I will also make a plug for some related extensions I have proposed for log4j that allow for more flexibility and source types than the current configureAndWatch() implementation. The extensions are stand alone

RE: Forced logging

2002-03-25 Thread Mark Womack
of the wrapper? Bill -Original Message- From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Monday, March 25, 2002 12:57 PM To: 'Log4J Users List' Subject: RE: Forced logging Instead of using forcedLog, you can use something like this: public void status(Object message, Throwable

RE: Appenders

2002-03-25 Thread Mark Womack
Will setting the threshold on the appenders do what you want? http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/AppenderSkeleton.h tml#setThreshold(org.apache.log4j.Priority) The above is for the 1.2 beta, but I believe it applies to 1.1.3 as well. -Mark -Original Message-

RE: partitioning log4j into sub-systems

2002-03-26 Thread Mark Womack
Do your subsystems run in their own thread? If so, one option might be to set the NDC (nested diagnostic context) value to the sub-system value and then filter the messages to different appenders based on the NDC value. The categories would still use their same logging names, but the NDC would

RE: Logger class

2002-03-26 Thread Mark Womack
If you use the javadoc documentation from the download zip, it does not mention Logger. It is new to 1.2, and the beta documentation is what is available on the web. It is not a silly question. Quite a few other folks have been confused by this. -Mark -Original Message- From: Jay

RE: MDC layout parameter

2002-03-26 Thread Mark Womack
Janusz, The answer is in the log4j/helpers/PatternParser.java code (used by PatternLayout.java). %x is for NDC. %X is for MDC. You will probably want to specify the particular MDC key, and that would be like this: %X{key name} Try it and see if it works for you. -Mark [Ceki, I think the

RE: MDC layout parameter

2002-03-26 Thread Mark Womack
fyi, I filed a bug against PatternLayout javadoc for not documenting the %X pattern converter. -Mark -Original Message- From: Mark Womack Sent: Tuesday, March 26, 2002 5:20 PM To: 'Log4J Users List' Subject: RE: MDC layout parameter Janusz, The answer is in the log4j/helpers

RE: MDC layout parameter

2002-03-27 Thread Mark Womack
Thanks Mark, This works fine. How can I filter them per MDC in say Lumbermill GUI? Janusz fyi Point taken, I will raise bug next time - thanks. -Original Message- From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 27, 2002 1:54 PM To: 'Log4J Users List' Subject: RE: MDC

RE: Problem with RollingFileAppender

2002-03-27 Thread Mark Womack
Venkat, Can you post an example of the messages getting posted to the console? Maybe there are log4j debug messages? Are you setting log4j.debug to true? -Mark -Original Message- From: Venkat Dokiparthi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 26, 2002 3:42 PM To: 'Log4J Users

RE: Basic question about log4j

2002-03-29 Thread Mark Womack
Unless Kevin has more information than me, or you guys are talking about something entirely different, I am not aware that any configureAndWatch() method changes or that the proposed Watchdog architecture are going to affect the 1.2 release. The proposed Watchdog architecture was not accepted

RE: Making the log4j library optional

2002-03-29 Thread Mark Womack
But wrapping the log4j calls in a class of my own won't work - because then when strings are logged - it will give the filename and line number of my wrapper method instead of the filename/line number of the place that the log statement was made. You can pass in the name of your wrapper

RE: DOMConfigurator

2002-03-29 Thread Mark Womack
I think this has been mentioned before. There is no way currently to catch configuration or log errors thrown by lo4j. I think that being able to detect configuration errors would be useful, but it would have to be done in a right way. -Mark -Original Message- From: xiaowen hu

RE: Making the log4j library optional

2002-04-01 Thread Mark Womack
Adam, You only need to pass in a custom FQCN (fully-qualified class name) when you subclass or wrap the Category/Logger class. There is no setter method that I am aware of, but the log() and forcedLog() methods will take it as a parameter. Such a method might be nice, but since it is only

RE: log4j and j2se 1.4 logging APIs delimma

2002-04-08 Thread Mark Womack
Chandan, I agree with Ylan. I don't see any compelling reason to switch from log4j to the new 1.4 logging api. Log4j has many more features that I consider critical to our logging requirements. And the open source nature of it makes it ideal for expanding and customizing to particular needs.

RE: JDBC Appender.

2002-04-09 Thread Mark Womack
Umesh, I think there is going to be an official version of the JDBCAppender in the next release of 1.2 (which will be an rc release?). You can check it out now if you access the cvs and get the code. -Mark -Original Message- From: Umesh Chhatre [mailto:[EMAIL PROTECTED]] Sent:

RE: log4j vs jdk 1.4 logging

2002-04-10 Thread Mark Womack
Steve, I am one of the biased ones, as you may have noticed in the archives. I started using log4j before I knew about the 1.4 logging api. At the time, log4j was the clear winner due to: - Design. It is one of the most flexible, configurable logging tools I have seen. - Extensibility. It

RE: Output from Log4j

2002-04-11 Thread Mark Womack
http://jakarta.apache.org/log4j/docs/manual.html is probably the closest thing to a how to article. Also, there is an XMLLayout class that can be used to output messages in an xml format. See the javadoc api documentation for details. -Mark -Original Message- From: Ashish kulkarni

RE: User filter

2002-04-11 Thread Mark Womack
You will need to write your own filter class to filter messages based on the contents of the NDC. It is really easy to write your own filter. See the javadoc api documentation and the source code for examples. This particular filter has been asked for so many times, I think someone should just

RE: User filter

2002-04-11 Thread Mark Womack
and modern. Again, you can write your filter to take action on a keys value. -Mark -Original Message- From: Mark Womack Sent: Thursday, April 11, 2002 1:31 PM To: 'Log4J Users List' Subject: RE: User filter You will need to write your own filter class to filter messages based

RE: Help to configure Log4j with example

2002-04-11 Thread Mark Womack
Maybe we should start with Dave's, edit and expand it and then submit it for future inclusion. Dave, I didn't get your html enclosure either. -Mark -Original Message- From: Gautham [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 11, 2002 3:29 PM To: Log4J Users List Subject: RE:

RE: Help to configure Log4j with example

2002-04-11 Thread Mark Womack
minutes ago confirms this. At 16:38 11.04.2002 -0600, you wrote: I was told the apache lists filter out HTML attachments, thinking they are likely spam. Save it as a .html.txt or something, to resend. regards Adam -Original Message- From: Mark Womack [mailto:[EMAIL PROTECTED

RE: Help to configure Log4j with example

2002-04-12 Thread Mark Womack
Dave, if you have time to cook something up, go for it. I think you are on the right track. We can keep our toes out of harms way. Maybe people just haven't found Ceki's article and taken the time to read it. Maybe we need to redesign the layout of the web pages so folks can find things

RE: too many file descriptors!

2002-04-12 Thread Mark Womack
Marta, Are you sure that this error is related to log4j? A file descriptor problem sounds like an OS level problem. Maybe you need to increase the number of file descriptors allowed on your system? How many log files have you configured log4j to create? -Mark -Original Message-

RE: Simple XML Configuration file

2002-04-17 Thread Mark Womack
I copied an xml file from the tests/input/xml directory in the log4j cvs and created the below example. I have not tested it, but it should get you in the right direction. If you find a problem with it, let us know. [To Dave Bender: this topic (xml config fule example) should be in the

RE: XML Configuration file

2002-04-17 Thread Mark Womack
now i have a class which does not a package, but i need the log's from this class to be written in say B1.log file. How can i do it What do you pass in as the name when you create the Category for this class? Just use that name in the config file. Add something like: appender name=B1

RE: XML Configuration file

2002-04-18 Thread Mark Womack
will go to output file defined in B1??? Ashish --- Mark Womack [EMAIL PROTECTED] wrote: now i have a class which does not a package, but i need the log's from this class to be written in say B1.log file. How can i do it What do you pass in as the name when you create

RE: log4j's errors

2002-04-18 Thread Mark Womack
Marta, I don't think such a list exists. These are error/debug messages generated by the log4j code itself. The only way I know of tracking them down is to search the source code for the message Error occured while converting date. My guess is that something is up in the

RE: XML Configuration file

2002-04-18 Thread Mark Womack
one provide with an example program, and if not how do i create this filter, i will really appreciate if some one can provide with an XML configuration file with filters Ashish --- Mark Womack [EMAIL PROTECTED] wrote: Ashish, Classes that are not in a package are hard

RE: Conversion Characters

2002-04-24 Thread Mark Womack
I believe you are looking for the PatternLayout javadoc page. http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html It is missing the %X description to support MDC. Maybe others that I am unaware of. -Mark -Original Message- From: Sara Prigge [mailto:[EMAIL

RE: Conversion Characters

2002-04-24 Thread Mark Womack
Ceki, In that case, you can close bug #7504. thanks! -Mark -Original Message- From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 2:26 PM To: Log4J Users List Subject: RE: Conversion Characters At 14:00 24.04.2002 -0700, you wrote: I believe you

RE: Time Zones

2002-04-26 Thread Mark Womack
Frank, I know this has come up a lot in the past, and I think it should be addressed. I don't know if there are any plans in 1.3 related to PatternLayout/PatternParser that might allow this in a different/better way. If you have a patch you have been testing, please post it to this or the

RE: passing an URL to configureAndWatch ?

2002-04-30 Thread Mark Womack
Anjan, configureAndWatch() method is expecting a path to a file. It does not support urls, as far as I know. I have proposed a set of extensions based on the configureAndWatch() functionality. The extensions attempt to allow more flexibility and options to specify a source for a watchdog that

Some (Hopefully) Useful Filters

2002-05-01 Thread Mark Womack
Enclosed are some (hopefully) useful filters that allow filtering based on: - logger name - NDC value - MDC key/value There is also a pass-thru filter that can be used to set the location info for a logging event, useful when used with other filters to set the location info for only some events

RE: NDC Usage

2002-05-02 Thread Mark Womack
Krishna, It looks to me that you have the basic NDC usage down. However, if you read the documentation for NDC you will find mention that the NDC.remove() method should be called periodically to remove references from dead threads. Without this I found that there was a substantial memory leak

RE: xml configuration question

2002-05-02 Thread Mark Womack
If you add -Dlog4j.debug=true to your java command line, what kind of output do you see as the configurator sets up? -Mark -Original Message- From: Steve Cohen [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 11:40 AM To: Jakarta Commons Developers List Cc: Log4J Users List

RE: xml configuration question

2002-05-02 Thread Mark Womack
Tag team log4j support! Woo-hoo! Glad you are up and running. -Mark -Original Message- From: Steve Cohen [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 02, 2002 12:57 PM To: Log4J Users List Cc: Jakarta Commons Developers List Subject: RE: xml configuration question

RE: NDC Usage/ MDC usage

2002-05-06 Thread Mark Womack
Krishna, So, I am confused. This output looks correct to me. A given session id (stored via a MDC key) is only displayed for a single thread id. This is the correct and expected behavior for MDC (ie a given MDC value is attached to the current thread, not every thread). So, what do you mean

RE: Advice on Usage of PropertyConfigurator

2002-05-06 Thread Mark Womack
You should only call it once, in some kind of setup class. -Mark -Original Message- From: Chaganthi, Madhusudan R. [mailto:[EMAIL PROTECTED]] Sent: Monday, May 06, 2002 1:13 PM To: '[EMAIL PROTECTED]' Subject: Advice on Usage of PropertyConfigurator Hi I have recently

RE: Advice on Usage of PropertyConfigurator

2002-05-06 Thread Mark Womack
? -Original Message- From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Monday, May 06, 2002 4:26 PM To: 'Log4J Users List' Subject: RE: Advice on Usage of PropertyConfigurator You should only call it once, in some kind of setup class. -Mark -Original Message- From

RE: XML configuration

2002-05-13 Thread Mark Womack
Hu, your description is rather scant. Can you tell us what 6 jars you have in the classpath? Can you parse the file via some other code outside of log4j? How about other xml files? It looks like an xml configuration problem more than a log4j specific problem. If it is a log4j problem, we can

RE: adding / removing appenders dynamically

2002-05-16 Thread Mark Womack
Jesse, You might want to look at the SocketHubAppender that is part of the log4j 1.2 release. Instead of actively seeking a target, it waits for clients to connect to it. Multiple clients can be supported. But you will need to modify the Lumbermill code to connect to the server you want.

RE: reloading properties file

2002-05-16 Thread Mark Womack
There is no way to do this in version 1.2. We are exploring better auto/reconfiguration support for version 1.3. For now, you could write your own code to check a property at startup and set up a configureAndWatch(). -Mark -Original Message- From: Liu, Mike [mailto:[EMAIL

RE: adding / removing appenders dynamically

2002-05-16 Thread Mark Womack
, Jesse -Original Message- From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 1:53 PM To: 'Log4J Users List' Subject: RE: adding / removing appenders dynamically Jesse, You might want to look at the SocketHubAppender that is part of the log4j

RE: adding / removing appenders dynamically

2002-05-16 Thread Mark Womack
been stopped. Jesse -Original Message- From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 2:28 PM To: 'Log4J Users List' Subject: RE: adding / removing appenders dynamically Even when I start up the socket appender in the log4j.properties

RE: Appender priorities

2002-05-17 Thread Mark Womack
Greg, sorry you did not get a response earlier. Personally I use the priority setting almost exclusively. I set the root priority to warn. This stops almost all of the trace messages before they get logged except the ones that I probably really care about (warn, error, fatal). Then I set the

RE: Defining layout and using objects to log information.

2002-05-21 Thread Mark Womack
I think the correct syntax would be %X{userId} See the PatternLayout javadoc page for exact details on %X. -Mark -Original Message- From: Benoit Voisin [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 11:54 PM To: 'Log4J Users List' Subject: RE: Defining layout and using

RE: Chainsaw related problems

2002-05-22 Thread Mark Womack
Another problem I'm having is that the 'Location' information in Chainsaw is shown as 'null'. How can this information be set? I beleive that the location info needs to be generated at the source of the logging event. Once the event has been sent to Chainsaw, the info cannot be generated.

RE: Stopping logger

2002-05-23 Thread Mark Womack
Jeroen, When you say children from EventLogger or TraceLogger, what do you mean? When you create the trace instance in your classes, what do you pass in as the logger name? The class name? Can you give some examples of names that are passed? -Mark -Original Message- From: Frissaer,

RE: Stopping logger

2002-05-28 Thread Mark Womack
-Original Message- From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 6:45 PM To: 'Log4J Users List' Subject: RE: Stopping logger Jeroen, Thanks for more details. If you set the level of your TraceLogger logger to a very high value, say FATAL

RE: How is Log4J licensed?

2002-05-28 Thread Mark Womack
If you download the v1.2.3 package, there is a LICENSE.txt at the top level of the directory. Log4j is licensed under the Apache 1.1 license, just like all the Apache projects. -Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002

RE: SocketAppender (was: console/file config)

2002-05-29 Thread Mark Womack
Look at the SocketNode class. You can use this class on the receiving end to read the logging events. -Mark -Original Message- From: Sundararaman, Anand [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 7:18 AM To: Log4J Users List Subject: RE: console/file config

RE: SocketAppender (was: console/file config)

2002-05-30 Thread Mark Womack
Message- From: Mark Womack [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, May 29, 2002 10:56 PM To: 'Log4J Users List' Subject:RE: SocketAppender (was: console/file config) Look at the SocketNode class. You can use this class on the receiving end to read the logging

RE: SocketHubAppender

2002-05-30 Thread Mark Womack
can't do what I'm looking to do with w/o modifying the Lumbermill code? I can't just remove or add a socket appender? Thanks, Jesse -Original Message- From: Mark Womack [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 1:53 PM To: 'Log4J Users List

RE: RollingFileAppender with HTMLLayout question

2002-05-31 Thread Mark Womack
If append is set to true, and the file exists, then don't write the headers. If append is set to true and file does not exist, then write the headers. If append is false, always write the headers. Maybe it should be smart enough to handle the ending body tag as well (write it when the appender

RE: extended FileAppenders to create the file directory

2002-06-03 Thread Mark Womack
Wouldn't you just need to subclass FileAppender class, override the setFile() method and have the code call File.mkdirs() and then call the superclass version? -Mark -Original Message- From: Rajan Annadurai [mailto:[EMAIL PROTECTED]] Sent: Saturday, June 01, 2002 6:02 PM To: Log4J

  1   2   3   >