Skip to content

agents / Exports / ConsoleLogger

Class: ConsoleLogger

Console logger implementation

Implements

Table of contents

Constructors

Methods

Constructors

constructor

new ConsoleLogger(packageName, logger?): ConsoleLogger

Parameters

NameType
packageNamestring
logger?SimpleLogger

Returns

ConsoleLogger

Defined in

packages/agents/src/utils/logger.ts:79

Methods

debug

debug(message, context?): void

Parameters

NameType
messagestring
context?LoggerData

Returns

void

Implementation of

Logger.debug

Defined in

packages/agents/src/utils/logger.ts:84


info

info(message, context?): void

Parameters

NameType
messagestring
context?LoggerData

Returns

void

Implementation of

Logger.info

Defined in

packages/agents/src/utils/logger.ts:90


warn

warn(message, context?): void

Parameters

NameType
messagestring
context?LoggerData

Returns

void

Implementation of

Logger.warn

Defined in

packages/agents/src/utils/logger.ts:96


error

error(message, context?): void

Parameters

NameType
messagestring
context?LoggerData

Returns

void

Implementation of

Logger.error

Defined in

packages/agents/src/utils/logger.ts:102


isDebugEnabled

isDebugEnabled(): boolean

Returns

boolean

Implementation of

Logger.isDebugEnabled

Defined in

packages/agents/src/utils/logger.ts:108


setLevel

setLevel(level): void

Parameters

NameType
levelUtilLogLevel

Returns

void

Implementation of

Logger.setLevel

Defined in

packages/agents/src/utils/logger.ts:112


getLevel

getLevel(): UtilLogLevel

Returns

UtilLogLevel

Implementation of

Logger.getLevel

Defined in

packages/agents/src/utils/logger.ts:116

Released under the MIT License.