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
>> lassloa...@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: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
> 
> 

-- 
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.

Reply via email to