venom icon indicating copy to clipboard operation
venom copied to clipboard

(suggestion) venom logs formatting and content

Open mxm-tr opened this issue 1 year ago • 0 comments

The new logs format that was introduced after venom 1.0.0 can be sometimes difficult to read/parse and does not contain that much information. It could be helpful to have more details sometimes for debugging failing tests.

Apr 18 16:36:54.602 [ERRO] [Cluster creation] [CreateService] Errors: 
Apr 18 16:36:54.602 [ERRO] [Cluster creation] [CreateService] Testcase "CreateService", step #0-0: Assertion "result.statuscode            ShouldEqual 200" failed. expected: 200  got: 401 (cluster_creation.yaml:0)

In previous versions, the key value format was much easier to parse for example

time="2024-04-11T19:13:25+02:00" level=debug msg="teststep exec '/bin/sh /tmp/venom-249556880'" v.testsuite="Create Service [kubernetes/cluster_creation.yaml]" x.testcase=CreateService 

Would it be possible to:

  • Pick a different location for logs (stdout, or a file)?
  • More logs formatting options (json) ?
  • More information displayed in the debug logs (http client headers and payloads, execution times and more)?

mxm-tr avatar Apr 25 '24 08:04 mxm-tr