Re: Ignoring log4j.properties configuration file

2005-06-27 Thread Jacob Kjome
It's pretty clear to me that you are using a custom logger which is loading its own config file via File IO and not finding it >java.io.FileInputStream.(FileInputStream.java:66) > >at >org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.j >ava:297) > >

Re: Filter based on category?

2005-06-27 Thread Curt Arnold
There hasn't be a clear simple statement of what your problem is, therefore the responses have been all over the map. Your initial posting was: On Jun 27, 2005, at 11:11 AM, Schuweiler, Joel J. wrote: Is there a way to use the category chunk in the xml config files to "filter" which append

RE: Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
At this point a custom MDC filter will probably be best as it will allow for more information to be passed and the ability to filter to a finer grain. -Original Message- From: Kostello, Don [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 4:07 PM To: Log4J Users List Subject: RE: F

RE: Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
I'm aware of everything you have typed in this email. I am not aware of a good way to implement it. Nor does anyone else on this mailing list apparently. -Original Message- From: Curt Arnold [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 4:09 PM To: Log4J Users List Subject: Re:

RE: Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
Yes unfortunately it looks like I'm going to have to write a custom filter and verify it works in every environment I plan on running the server from. -Original Message- From: Kostello, Don [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 4:07 PM To: Log4J Users List Subject: RE: F

RE: Filter based on category?

2005-06-27 Thread Kostello, Don
Write an MDCFilter -Original Message- From: Schuweiler, Joel J. [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 3:52 PM To: 'Log4J Users List' Subject: RE: Filter based on category? The problem with this approach is there is no filter that will check the mdc information. StringMat

Re: Filter based on category?

2005-06-27 Thread Curt Arnold
On Jun 27, 2005, at 3:21 PM, Schuweiler, Joel J. wrote: Knowing what server a log comes from isn't enough. I need to know which application it's coming from. This could simply be achieved by requiring everyone to put a certain keyword into the log message and use the StringMatchFilter or

RE: Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
The problem with this approach is there is no filter that will check the mdc information. StringMatchFilter ONLY matches on the message. -Original Message- From: Schuweiler, Joel J. [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 3:49 PM To: 'Log4J Users List' Subject: RE: Filter b

RE: Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
Seems that if I do MDC.put("Department, "Security") On the client side and on the server use a patternlayout and do %X{Department} I should be able to sort on that.. Hopefully... I will find out -Original Message- From: Kostello, Don [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2

RE: Filter based on category?

2005-06-27 Thread Kostello, Don
I would think you could do this using NDC. On the client side, you could do an NDC.push(Identifier). On the server side, have multiple file appenders. Set the layout to include the NDC information. Then, add a string match filter to each appender, checking for the various identifiers. Not su

RE: Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
Knowing what server a log comes from isn't enough. I need to know which application it's coming from. This could simply be achieved by requiring everyone to put a certain keyword into the log message and use the StringMatchFilter or by using a custom filter which checks the category name/logger

Re: Filter based on category?

2005-06-27 Thread James Stauffer
We have a somewhat similar setup. Multiple servers in a pool. We send the logs to the Database. We distinguish the server by setting the hostname in MDC each time a request is made. If the serialization keeps the MDC values that might work for you. We do have to set the MDC server name in code

RE: Filter based on category?

2005-06-27 Thread Scott Deboy
PropertyFilter (included in log4j 1.3 alpha) will add properties to every event processed by the filter. This would probably fit the bill in the (possibly distant) future. http://cvs.apache.org/viewcvs.cgi/logging-log4j/src/java/org/apache/log4j/filter/PropertyFilter.java?rev=1.1&view=markup -

RE: Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
While I'm not entirely sure what information it plans on sending to identify the app from any other hostname/ip and class name aren't going to do me a whole lot of good. This is on a cluster. I would like to be able to assign some sort of prefix/postfix to the logger names and go from there. I

RE: Filter based on category?

2005-06-27 Thread Scott Deboy
If you can use a log4j 1.3-based simplesocketserver (which relies on SocketNode), the HEAD revision of SocketNode adds a 'log4j.remoteSourceInfo' property to the logging event, which could be used to distinguish events from various sources (of course, 1.2.x -> 1.3 over serialized loggingEvent me

RE: Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
Ok for a lack of a good universal drawing tool I'm going to do dreaded ascii Applications on a cluster <-> serialized log event <-> socket <-> internet <-> socket server <-> unserialized log event On the socket server I'm looking for an easy way to tell who sent the log event. Is there an easy

Re: Filter based on category?

2005-06-27 Thread James Stauffer
I am trying to figure out why the normal way of doing things doesn't work in your case. On 6/27/05, Schuweiler, Joel J. <[EMAIL PROTECTED]> wrote: > I'm thinking perhaps I'm not understanding what you are getting at. > > -Original Message- > From: Schuweiler, Joel J. [mailto:[EMAIL PROTEC

Re: Filter based on category?

2005-06-27 Thread James Stauffer
That doesn't make sense to me. That sounds wrong. Can you give more details? On 6/27/05, Schuweiler, Joel J. <[EMAIL PROTECTED]> wrote: > If I use a dot it strips off the left side in the logging event > > -Original Message- > From: James Stauffer [mailto:[EMAIL PROTECTED] > Sent: Monda

RE: Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
I'm thinking perhaps I'm not understanding what you are getting at. -Original Message- From: Schuweiler, Joel J. [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 2:19 PM To: 'Log4J Users List' Subject: RE: Filter based on category? If I use a dot it strips off the left side in the

RE: Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
If I use a dot it strips off the left side in the logging event -Original Message- From: James Stauffer [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 2:17 PM To: Log4J Users List Subject: Re: Filter based on category? I don't understand why you want to replace the dot with the u

Re: Filter based on category?

2005-06-27 Thread James Stauffer
I don't understand why you want to replace the dot with the underscore. Are you trying to separate your logs based on the type of program? On 6/27/05, Schuweiler, Joel J. <[EMAIL PROTECTED]> wrote: > I would do something like > > static Logger logger = Logger.getLogger("joel.SecondLogger"); > >

RE: Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
I would do something like static Logger logger = Logger.getLogger("joel.SecondLogger"); However if I want to do this it appears I need to make a custom filter and rename it to joel_SecondLogger (_ could be any char but .). This also leaves me with having to modify the log4j jar's that come wit

Re: Filter based on category?

2005-06-27 Thread James Stauffer
Does that mean that you would have a logger named something like edu.mayo.package.myClass.WebApps? Is there a reason that you can't name it WebApps.edu.mayo.package.myClass? On 6/27/05, Schuweiler, Joel J. <[EMAIL PROTECTED]> wrote: > This doesn't work for me I presume because the logger name wou

RE: Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
This doesn't work for me I presume because the logger name would be what is to the right of the . And I want to look at what is to the left. -Original Message- From: James Stauffer [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 1:12 PM To: Log4J Users List Subject: Re: Filter bas

Re: Filter based on category?

2005-06-27 Thread James Stauffer
On 6/27/05, Schuweiler, Joel J. <[EMAIL PROTECTED]> wrote: > How? :) > > -Original Message- > From: James Stauffer [mailto:[EMAIL PROTECTED] > Sent: Monday, June 27, 2005 12:59 PM > To: Log4J Users List > Subject: Re: Filter based on category? > > That i

RE: Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
Code will not be shared amongst the apps. If you have a better suggestion I would love to hear it. -Original Message- From: Ceki Gülcü [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 1:08 PM To: Log4J Users List Subject: RE: Filter based on category? At 07:01 PM 6/27/2005, you w

RE: Filter based on category?

2005-06-27 Thread Ceki Gülcü
At 07:01 PM 6/27/2005, you wrote: When you create a new logger you pass in a string. I have seen this referred to as category but as far as a logging event is concerned I think it's referred to as the logger name? Anyways, I am going to wind up having people (many) name their loggers such tha

RE: Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
How? :) -Original Message- From: James Stauffer [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 12:59 PM To: Log4J Users List Subject: Re: Filter based on category? That is easy to do as long as they are named with a dot on the end. Webapps. Desktopapps. Janitorapps. Then the sta

Re: Filter based on category?

2005-06-27 Thread James Stauffer
That is easy to do as long as they are named with a dot on the end. Webapps. Desktopapps. Janitorapps. Then the standard way of setting up loggers would work fine for you. On 6/27/05, Schuweiler, Joel J. <[EMAIL PROTECTED]> wrote: > When you create a new logger you pass in a string. I have seen t

Ignoring log4j.properties configuration file

2005-06-27 Thread César Valencia López
Hi, I am using Tomcat 5.0.28 and I am putting log4j.properties file in the WEB-INF/classes directory and log4j-1.2.9.jar file in the WEB-INF/lib directory of my application, but I get the following error: log4j:ERROR Could not read configuration file [log4j.properties]. java.io.FileNotFou

RE: Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
When you create a new logger you pass in a string. I have seen this referred to as category but as far as a logging event is concerned I think it's referred to as the logger name? Anyways, I am going to wind up having people (many) name their loggers such that all loggers start with Webapps_ D

Re: Filter based on category?

2005-06-27 Thread James Stauffer
Can you provide more details about what you want to do? Do you want to filter based on a string in the category instead of the hierarchy of the category? On 6/27/05, Schuweiler, Joel J. <[EMAIL PROTECTED]> wrote: > > Is there a way to use the category chunk in the xml config files to "filter" >

RE: Tabs of Chainsaw

2005-06-27 Thread Scott Deboy
There is a default 'tab identifier' which controls how events are initially routed to tabs. This tab identifier relies on the expression syntax keywords (see the tutorial). For example, to have events route to a tab based on level (all WARN events end up on a common tab, all INFO events end up

Filter based on category?

2005-06-27 Thread Schuweiler, Joel J.
Is there a way to use the category chunk in the xml config files to "filter" which appender to use or am I better off making a custom filter which checks the category? I have tested and read that the StringMatchFilter only matches against the message. -

Re: Log4j and JMS

2005-06-27 Thread James Stauffer
Another way to consoldiate logs for a cluster is to send all error logs to a Database. On 6/23/05, Schuweiler, Joel J. <[EMAIL PROTECTED]> wrote: > While I don't know much about jms would this perhaps be a route to take for > logging to different files on a remote machine from a cluster full of

String match api has dead example links

2005-06-27 Thread Schuweiler, Joel J.
- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

JMX support (again)

2005-06-27 Thread Gray, Jonathan
Hi, Could you tell me the current state of JMX support in log4j? I know the following 1. It's not production ready 2. There is a patch submitted to make it JMX 1.1/1.2 compliant but that isn't integrated into the main src. 3. There have been lots of people offering to maint

Tabs of Chainsaw

2005-06-27 Thread Tan Kah Siong
Hi, I am trying to patch a some parts of the receiver (file pattern and db) to suit some of my requirements. I have the following enquiries on how the LoggingEvent work. I wish to know what determines the tab when chainsaw is running. I am trying to parse a xml lite file by making some decoder