Display results as :

Rechercher Advanced Search


How to write logs>

View previous topic View next topic Go down

How to write logs>

Post by snehal mulay on Mon Mar 21, 2011 8:19 pm

Hi all,

I am using selenium rc. i want to write logs which we get in IDE like [INFO] and [ERROR] can i write this. How can I get error string?


snehal mulay

Posts : 4
Join date : 2011-03-18

Back to top Go down

Re: How to write logs>

Post by Adviser on Tue Mar 22, 2011 8:26 pm


Try to use the following command

storeLogMessages ( variableName )

Return the contents of the log.

This is a placeholder intended to make the code generator make this API available to clients. The selenium server will intercept this call, however, and return its recordkeeping of log messages since the last call to this API. Thus this code in JavaScript will never be called.

The reason I opted for a servercentric solution is to be able to support multiple frames served from different domains, which would break a centralized JavaScript logging mechanism under some conditions.

all log messages seen since the last call to this API

I think this will solve the purpose. Best of luck.


Posts : 379
Join date : 2009-07-30
Location : India

Back to top Go down

Re: How to write logs>

Post by auto_ashish1 on Tue Apr 05, 2011 11:53 pm

1) Logs can be generated by using log4j API in java.

2)Log4j API can help you create 2 log files. In one log file, you can write out your normal testing logs and in the other log file, you can output the selenium server logs.

3)Following are some good links describing log4j API



For online Selenium training go to my website-

Active particpant
Active particpant

Posts : 21
Join date : 2011-03-10

Back to top Go down

Re: How to write logs>

Post by Sponsored content Today at 12:47 am

Sponsored content

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum