Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 838 Bytes

File metadata and controls

22 lines (14 loc) · 838 Bytes

Back to overview

Logging

Testla comes with logging which helps you to debug your test code. When logging is enabled all activities an actor triggers are logged in a comprehensive way to stdout. To enable logging set the DEBUG environment variable as follows:

DEBUG=testla:sp

In addition it is possible to print structured logs to stdout. This can be achieved as follows.

import { STRUCTURED_LOGS_ENVVAR_NAME } from '@testla/screenplay'

// activating structured logs to stdout
process.env[STRUCTURED_LOGS_ENVVAR_NAME] = 'true';

To understand how to enable logging in custom Actions and Questions please refer to the logging guide of Testla Screenplay Core.

Back to overview