18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

How to insert my own log message to Sahi's log?

streakstreak Members
edited November -1 in Sahi - Open Source
Hi,
Sahi is great.
Here is my question: I want to insert my own logs, which may come from executing an external bash script into Sahi's finally log. How can I do that?
I notice that in /sahi/logs , there is a file called sahi.log. It becomes bigger and bigger. Is that possible for me to insert my message use "">>"" to the end of the file?

Please give me a help. Thanks!

Comments

  • Yeah, there should be no reason why you couldn't open the log file and put your own comments in there.

    You might want to consider putting the comments in the latest file in \sahi\logs\playback
  • Thx! I wish there will be a more comfortable way to do that in the feature :)
  • Have you had a look at this:

    http://sahi.co.in/w/_debugtofile
  • Yes, I noticed that. But that's not what I want. I want to combine my external script's log with sahi's log, so that I can just simply click the "View log" and get them all in HTML format within a web browser after running a sahi script. Is that possible?
Sign In or Register to comment.