DaveWoodCom / XCGLogger

A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog() or print(), but with additional information, such as the date, function name, filename and line number.
MIT License
3.94k stars 477 forks source link

How to display the test results with XCGLogger and XCUITest #297

Closed moatazeldebsy closed 4 years ago

moatazeldebsy commented 4 years ago

We are using XCGLogger to add logging info in our page objects classes and beside the custom messages that we added using log.debug("I'm here!") we need to log the test method results(PASSED or FAILED) in the log file, how can we do this .

Also, how can we display the errors that not logged by XCGLogger for example Assertion Failure

Thank you!