Re: AW: Newbie questions

2009-04-10 Thread Douglas E Wegscheid
...and our learnings...

1) don't edit down the facts too far when asking for help. You may edit 
out essential information, or get potentially helpful people to 
concentrate on a different problem.

2) find a nice way to say RTFM. Calling a question stupid onlist and 
implying that posting a question is a waste of time is not a good way to 
come across as helpful.

Douglas E Wegscheid
Lead Technical Analyst, Whirlpool Corporation
(269)-923-5278

A wrong note played hesitatingly is a wrong note. A wrong note played 
with conviction is interpretation.



John El jo...@mailinator.com wrote on 04/09/2009 11:32:36 PM:

 
 To: Edward
 Perhaps I did get bent out of shape, but I do think my question had 
merit.
 I suppose my mistake was in not explaining that there was no obvious 
place
 for the fatal log to go, but it had to be going somewhere because 
another
 system that I don't have access to was reporting on it. 
 RTFM?  And non trivial? I had looked in a lot of places for some info on
 this and found nothing, I posted here for some help and was told the
 question was dumb.
 
 To: Douglas
 I ran some similar tests, it's how I added the string that I grep'ed 
for. 
 I would be inclined to think that a different configuration
 was getting picked up  that's what I thought too, but it turned out to 
be a
 little more complicated than that.  I was finally able to track down the 
guy
 that set it up in the first place and his explanation was convoluted. 
It's
 a very clever set up, but, in a lot of ways it's too clever, and 
completely
 un-documented. I'd like to tell you but then I'll just get more posts 
saying
 'oh, of course that's how it was done! I could have told you that'.  I 
feel
 bad for not telling you but it was hard work figuring it, if it comes up 
for
 someone else, I'll leave it to be hard work for them.
 
 To: Daniel
 MAYBE the person should read up on the basics first?
 Like I said above I looked everywhere for an explanation of this, 
perhaps it
 is basic, but I still haven't found any documentation on this kind of 
set
 up.
 If you want to run without an appender fine.  You could even try to run
 log4j with no setup, or even no downloaded jars... don't expect it to 
work
 well though.
 Again, the system runs, the motorcycle has gas and an engine, it has a 
set
 up, it has downloaded jars and it's not coasting down a hill.  It works. 
 
 
 To: Matt
 This was just a snippet, I could have posted the whole file but I think 
I
 would have got the same response.  The rest of the file declares some
 appenders, and categories but nothing that obviously directs to the 
fatal
 log.  Thanks for the link. It is actually one of my main resources.
 
 To: Bender Henri
 I know you think my question was dumb, and a waste of your time because 
you
 think I didn't research it enough. I think you're wrong. As far as I can
 tell my situation is not in the documentation. If I ever find it in the 
docs
 I'll post it and eat crow.
 
 To: All
 I'm very sorry to have wasted your time.
 I just didn't understand how it could possibly work without all the 
obvious
 things that the documentation says is required.
 Now I do.
 
 -- 
 View this message in context: http://www.nabble.com/Newbie-
 questions-tp22938434p22982589.html
 Sent from the Log4j - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
 For additional commands, e-mail: log4j-user-h...@logging.apache.org
 


AW: Newbie questions

2009-04-09 Thread Bender Heri
If you do not specify any appender, your log message will go nowhere.

Please read first the basics about log4j, before asking such dumb questions. 
Search the web for log4j tutorial and you will find tons of instructions and 
examples.

Heri 

-Ursprüngliche Nachricht-
Von: John El [mailto:jo...@mailinator.com] 
Gesendet: Dienstag, 7. April 2009 23:15
An: log4j-user@logging.apache.org
Betreff: [SPAM (Bayesain Analysis)] - Newbie questions - Bayesian Filter 
detected spam


can someone tell me where fatal messages go if this is in my config file?

root
   priority value=fatal/
/root

also can someone point me to a resource that describes all the potential 
arguments in this file for category and appender xml elements?

TIA
John


--
View this message in context: 
http://www.nabble.com/Newbie-questions-tp22938434p22938434.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: AW: Newbie questions

2009-04-09 Thread John El

Thanks for your no help at all.  

There is no appender, and I've found the log by running grep over all the
likely files, and by grepping that file name I've found where the log file
is set.  I've searched the documentation for this kind of set up and found
nothing.

I've found info on properties files and the most useful thing I've found
about using an xml file for log4j configuration was a blog where the guy
says that there doesn't seem to be a good source of info on this.

My questions may have been dumb, but you weren't smart enough to provide an
answer.  I can't imagine why you bothered to reply to my post if you had
nothing of value to add.  Lots of spare time?  A feeling of superiority when
you call my question dumb? Can't be that because you don't seem superior
enough to have an answer.

One more dumb question for you.  If you're so smart, where did I find the
set up for the fatal log?  And why?

I know the answers now, but do you?



Bender Heri wrote:
 
 If you do not specify any appender, your log message will go nowhere.
 
 Please read first the basics about log4j, before asking such dumb
 questions. Search the web for log4j tutorial and you will find tons of
 instructions and examples.
 
 Heri 
 
-- 
View this message in context: 
http://www.nabble.com/Newbie-questions-tp22938434p22975234.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org



Re: AW: Newbie questions

2009-04-09 Thread Douglas E Wegscheid
 One more dumb question for you.  If you're so smart, where did I find 
the
 set up for the fatal log?  And why?

I would have had to agree with Bender's statement that logging with no 
appenders makes the logging go nowhere, and I put together a test case to 
make sure: 

the program:

import org.apache.log4j.Logger;


public class TestNoAppenders {
  public static void main (String[] args) {
System.setProperty(log4j.debug, true);
System.setProperty(log4j.configuration, 
file:log4j-noappender.xml);
 
Logger logger = Logger.getLogger(foo);
logger.info(hello);
  }

}

the configuration:

?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE log4j:configuration SYSTEM log4j.dtd
log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=
true
 root
  priority value=INFO /
 /root
/log4j:configuration

The output to stdout/stderr:

log4j: Using URL [file:log4j-noappender.xml] for automatic log4j 
configuration.
log4j: Preferred configurator class: org.apache.log4j.xml.DOMConfigurator
log4j: System property is :null
log4j: Standard DocumentBuilderFactory search succeded.
log4j: DocumentBuilderFactory is: 
org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
log4j: debug attribute= true.
log4j: reset attribute= false.
log4j: Threshold =null.
log4j: Level value for root is  [INFO].
log4j: root level set to INFO
log4j:WARN No appenders could be found for logger (foo).
log4j:WARN Please initialize the log4j system properly.

which is exactly what experience has lead me to expect (I have seen the 
last two lines about a bajillion times in my life...), and Bender's 
statement is quite accurate for the information given...

so now my curiousity is up: where *did* you find your output? if it showed 
up anywhere, I would be inclined to think that a different configuration 
was getting picked up...

Re: AW: Newbie questions

2009-04-09 Thread Edward L. Knoll
Don't get bent out of shape when you decide to post this kind of
question to a public forum and you get the kind of response you did.  A
lot of people monitor these forums to pick up information, to get help
with problems, and/or help people with legitimate.  It's quite
understandable why people get irritated at those that can't be bothered
to do a bit of homework to discover basic information.   Too much of
this kind of noise discourages knowledgeable people from monitoring
these forums. 

RTFM next time and save this forum for non-trivial questions.


On Thu, 2009-04-09 at 10:02 -0700, John El wrote:

 Thanks for your no help at all.  
 
 There is no appender, and I've found the log by running grep over all the
 likely files, and by grepping that file name I've found where the log file
 is set.  I've searched the documentation for this kind of set up and found
 nothing.
 
 I've found info on properties files and the most useful thing I've found
 about using an xml file for log4j configuration was a blog where the guy
 says that there doesn't seem to be a good source of info on this.
 
 My questions may have been dumb, but you weren't smart enough to provide an
 answer.  I can't imagine why you bothered to reply to my post if you had
 nothing of value to add.  Lots of spare time?  A feeling of superiority when
 you call my question dumb? Can't be that because you don't seem superior
 enough to have an answer.
 
 One more dumb question for you.  If you're so smart, where did I find the
 set up for the fatal log?  And why?
 
 I know the answers now, but do you?
 
 
 
 Bender Heri wrote:
  
  If you do not specify any appender, your log message will go nowhere.
  
  Please read first the basics about log4j, before asking such dumb
  questions. Search the web for log4j tutorial and you will find tons of
  instructions and examples.
  
  Heri