Friday, May 10, 2024
HomeGolangTesting package deal log - ship to centralized administration instrument - Getting...

Testing package deal log – ship to centralized administration instrument – Getting Assist


Hello,
I’m a part of automation staff. We’re utilizing testing package deal to run a lot of check instances.

Our purpose is to gather logs per check case and retailer it in an object stoage (S3 or Google Storage). So that we are going to create a hyperlink to the log and entry it by internet browser

Now coming to the issue, if we use log package deal – we will setoutput to a file and generate the logs. As soon as check case execution will get accomplished, ship the file to S3 or Google Storage.

However with testing package deal – T.log(“”) will print solely to the console throughout check execution that too with verbose command.

However in our current check suite, we’re utilizing solely testing package deal T.log(“”) command to print the logs. It isn’t simple to modify to log package deal as that received’t print any logs within the console when executed as a check.

May anybody please shed some thought on deal with this situation?

PS. I’m a beginner in golang

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments