UNPKG

magnitude-test

Version:

A TypeScript client for running automated UI tests through the Magnitude testing platform

16 lines (15 loc) 408 B
import pino from 'pino'; export const logger = pino({ level: process.env.MAGNITUDE_LOG_LEVEL || 'warn', transport: process.stdout.isTTY ? { target: 'pino-pretty', options: { colorize: !process.env.NO_COLOR, translateTime: 'SYS:HH:MM:ss.l', ignore: 'pid,hostname' } } : undefined }).child({ name: "runner" }); export default logger;