Skip to content

getLogger

function getLogger(namespace): Logger

Get a logger for a given package.

Parameter Type Default value Description

namespace

string

'openai-agents'

the namespace to use for the logger.

Logger

A logger object with debug and error methods.