createLogger
createLogger(
namespace):Logger
Defined in: packages/core/src/errors/log.ts:112
Create a namespaced logger. The namespace renders as [flaky-tests:<namespace>]
at the start of every line so messages from different subsystems are easy
to pick out in a noisy test run.
Each call emits to console.{error,warn,log}. When config.log.file
(set via FLAKY_TESTS_LOG_FILE) is configured, the same line is also
appended to that file with a timestamp — useful when the user-facing
console is crowded or piped elsewhere.
Parameters
Section titled “Parameters”namespace
Section titled “namespace”string