jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: JMeter and Ant Logging
Date Wed, 15 Jul 2009 15:57:00 GMT
hi
whoops sorry, didnt read your message carefully.
Possibly a different log4j.properties file is being used - i.d change the
name to something other than log4j.properties and use -Dlog4j.configuration
to explicitly specify this file
You also have log4j: setFile called: c:/brol7/application3.log, false , but
your log4j.properties doesnt have any such log file mentioned. Also you dont
have anything named stderr but it shows up as well. And the log you've
attached shows that no file is being set for stdout..

regards
deepak

On Wed, Jul 15, 2009 at 3:31 AM, SGE0 <stefangeelen@hotmail.com> wrote:

>
> Hi,
>
> thx for the response.
>
> Please note that the consoleappender is in comment (please note the cross
> sign at the beginning of the line #) and that the stdout is pointing to a
> FileAppender !
>
> So basically I want to suppress that logs are coming in the console.
>
>
> Regards,
>
> S.
>
>
>
> Deepak Shetty wrote:
> >
> > Hi
> > im not sure what your question is. The log4j.properties file specifies a
> > console appender , so you would get to see the messages appearing on your
> > console
> > regards
> > deepak
> >
> > On Tue, Jul 14, 2009 at 1:55 PM, SGE0  wrote:
> >
> >>
> >> Hi,
> >>
> >> I have been using Ant & Jmeter successfully the last months.
> >>
> >> No I want to use the log4j package to have more control on the logging
> of
> >> messages
> >>
> >> I have a log4j.properties file with following contents:
> >>
> >>
> >>
> >>  log4j.rootCategory=WARN,application,stdout,
> >>
> >>
> >>  #out to console
> >>  #log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> >>  #log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> >>  #log4j.appender.stdout.layout.ConversionPattern=%-4r [%t] %-5p %c %x
> >> -%m%n
> >>
> >>
> >>  log4j.appender.stdout= org.apache.log4j.FileAppender
> >>  log4j.appender.stdout.file = c:/brol7/application2.log
> >>  log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
> >>  log4j.appender.stdout.layout.conversionPattern = %d [%t] %-5p %c - %m%n
> >>  log4j.appender.stdout.append = false
> >>
> >>  #out to file
> >>  log4j.appender.application = org.apache.log4j.FileAppender
> >>  log4j.appender.application.file = c:/brol7/application.log
> >>  log4j.appender.application.layout = org.apache.log4j.PatternLayout
> >>  log4j.appender.application.layout.conversionPattern = %d [%t] %-5p %c -
> >> %m%n
> >>  log4j.appender.application.append = false
> >>
> >>
> >> At startup I get following;
> >>
> >> Buildfile: monitor.xml
> >> log4j: Trying to find [log4j.properties] using context classloader
> >> java.net.URLC
> >> lassLoader@de6ced.
> >> log4j: Using URL [file:/C:/brol7/log4j.properties] for automatic log4j
> >> configura
> >> tion.
> >> log4j: Reading configuration from URL file:/C:/brol7/log4j.properties
> >> log4j: Parsing for [root] with value=[WARN,application,stdout, stderr].
> >> log4j: Level token is [WARN].
> >> log4j: Category root set to WARN
> >> log4j: Parsing appender named "application".
> >> log4j: Parsing layout options for "application".
> >> log4j: Setting property [conversionPattern] to [%d [%t] %-5p %c - %m%n].
> >> log4j: End of parsing for "application".
> >> log4j: Setting property [file] to [c:/brol7/application.log].
> >> log4j: Setting property [append] to [false].
> >> log4j: setFile called: c:/brol7/application.log, false
> >> log4j: setFile ended
> >> log4j: Parsed "application" options.
> >> log4j: Parsing appender named "stdout".
> >> log4j: Parsing layout options for "stdout".
> >> log4j: Setting property [conversionPattern] to [%d [%t] %-5p %c - %m%n].
> >> log4j: End of parsing for "stdout".
> >> log4j: Setting property [file] to [c:/brol7/application2.log].
> >> log4j: Setting property [append] to [false].
> >> log4j: setFile called: c:/brol7/application2.log, false
> >> log4j: setFile ended
> >> log4j: Parsed "stdout" options.
> >> log4j: Parsing appender named "stderr".
> >> log4j: Parsing layout options for "stderr".
> >> log4j: Setting property [conversionPattern] to [%d [%t] %-5p %c - %m%n].
> >> log4j: End of parsing for "stderr".
> >> log4j: Setting property [append] to [false].
> >> log4j: Setting property [file] to [c:/brol7/application3.log].
> >> log4j: setFile called: c:/brol7/application3.log, false
> >> log4j: setFile ended
> >> log4j: Parsed "stderr" options.
> >> log4j: Finished configuring.
> >>
> >>
> >> The problem is that the messages (generated by JMeter and Ant build
> file)
> >> keep coming in the console.
> >>
> >> Some one an idea of how to solve this ?
> >>
> >> Stefan
> >>
> >> --
> >> View this message in context:
> >> http://www.nabble.com/JMeter-and-Ant-Logging-tp24487650p24487650.html
> >> Sent from the JMeter - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/JMeter-and-Ant-Logging-tp24487650p24495331.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message