Re: Help understanding Log4j basics

2010-11-23 Thread Ari King
>> 2. How does one stop log4j in a webapp? > > Configure it via log4j config, then restart webapp (this reloads > configuration) After reviewing the manual, as I understand it the way to turn "off" logging is by not assigning a log level or assigning a high (error or fatal) log level. But doesn't

Re: Help understanding Log4j basics

2010-11-23 Thread Christian Grobmeier
> 1. How does one start log4j in a webapp? Is having the > log4j.properties or log4j.xml file in the classpath enough? Usually yes. You should have log4j itself in the classpath, of course. > 2. How does one stop log4j in a webapp? Configure it via log4j config, then restart webapp (this reloads

Help understanding Log4j basics

2010-11-23 Thread Ari King
I'd appreciate help in clarifying the following: 1. How does one start log4j in a webapp? Is having the log4j.properties or log4j.xml file in the classpath enough? 2. How does one stop log4j in a webapp? 3. Is there a way to specify which level of logging, i.e. debug, info, error, is printed? Tha

AW: Logging to File

2010-11-23 Thread Stadelmann Josef
Guess .-1 is not 100% correct It was asked to send all log events to a file #the rootLogger logs warning, errors and fatal, and it's only appender is named A1 log4j.rootLogger=WARN, A1 # A1 is a FileAppender log4j.appender.A1=org.apache.log4j.FileAppender # A1's file-path is output/temp # - t