You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by rolandpeng <ro...@cht.com.tw> on 2011/03/11 02:11:41 UTC

how to show log message in console with logger

hi, 
   I  have many log.info("show message in log file") statements in beanshell
postprocessor. 
It's fine I can read the log messages in jmeter.log. 

   But is it possible to modify log4j configuration to show the messages in
console window(system.out) as well. 
So I don't need to write print("show message in console") similar to
log.info again. 

Any suggestions would be welcome,thank you! 

Roland. 

--
View this message in context: http://jmeter.512774.n5.nabble.com/how-to-show-log-message-in-console-with-logger-tp3424410p3424410.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


Re: how to show log message in console with logger

Posted by sebb <se...@gmail.com>.
On 11 March 2011 01:11, rolandpeng <ro...@cht.com.tw> wrote:
> hi,
>   I  have many log.info("show message in log file") statements in beanshell
> postprocessor.
> It's fine I can read the log messages in jmeter.log.
>
>   But is it possible to modify log4j configuration to show the messages in
> console window(system.out) as well.

No.

Anyway JMeter does not use log4j.

> So I don't need to write print("show message in console") similar to
> log.info again.
>
> Any suggestions would be welcome,thank you!

Write a method that does both.

> Roland.
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/how-to-show-log-message-in-console-with-logger-tp3424410p3424410.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
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: how to show log message in console with logger

Posted by 彭光裕 <ro...@cht.com.tw>.
That's what I'm looking for! Thank you!

Roland.
-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com] 
Sent: Friday, March 11, 2011 9:18 AM
To: JMeter Users List
Subject: Re: how to show log message in console with logger

(not tested)

from jmeter.properties
# To redirect logging to standard output, try the following:
# (it will probably report an error, but output will be to stdout) #log_file=

regards
deepak

On Thu, Mar 10, 2011 at 5:11 PM, rolandpeng <ro...@cht.com.tw> wrote:

> hi,
>   I  have many log.info("show message in log file") statements in 
> beanshell postprocessor.
> It's fine I can read the log messages in jmeter.log.
>
>   But is it possible to modify log4j configuration to show the 
> messages in console window(system.out) as well.
> So I don't need to write print("show message in console") similar to 
> log.info again.
>
> Any suggestions would be welcome,thank you!
>
> Roland.
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/how-to-show-log-message-in-console-
> with-logger-tp3424410p3424410.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
>
>

Re: how to show log message in console with logger

Posted by Deepak Shetty <sh...@gmail.com>.
(not tested)

from jmeter.properties
# To redirect logging to standard output, try the following:
# (it will probably report an error, but output will be to stdout)
#log_file=

regards
deepak

On Thu, Mar 10, 2011 at 5:11 PM, rolandpeng <ro...@cht.com.tw> wrote:

> hi,
>   I  have many log.info("show message in log file") statements in
> beanshell
> postprocessor.
> It's fine I can read the log messages in jmeter.log.
>
>   But is it possible to modify log4j configuration to show the messages in
> console window(system.out) as well.
> So I don't need to write print("show message in console") similar to
> log.info again.
>
> Any suggestions would be welcome,thank you!
>
> Roland.
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/how-to-show-log-message-in-console-with-logger-tp3424410p3424410.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
>
>