agents / Exports / ConsoleLogger
Class: ConsoleLogger
Console logger implementation
Implements
Table of contents
Constructors
Methods
Constructors
constructor
• new ConsoleLogger(packageName, logger?): ConsoleLogger
Parameters
| Name | Type |
|---|---|
packageName | string |
logger? | SimpleLogger |
Returns
Defined in
packages/agents/src/utils/logger.ts:79
Methods
debug
▸ debug(message, context?): void
Parameters
| Name | Type |
|---|---|
message | string |
context? | LoggerData |
Returns
void
Implementation of
Defined in
packages/agents/src/utils/logger.ts:84
info
▸ info(message, context?): void
Parameters
| Name | Type |
|---|---|
message | string |
context? | LoggerData |
Returns
void
Implementation of
Defined in
packages/agents/src/utils/logger.ts:90
warn
▸ warn(message, context?): void
Parameters
| Name | Type |
|---|---|
message | string |
context? | LoggerData |
Returns
void
Implementation of
Defined in
packages/agents/src/utils/logger.ts:96
error
▸ error(message, context?): void
Parameters
| Name | Type |
|---|---|
message | string |
context? | LoggerData |
Returns
void
Implementation of
Defined in
packages/agents/src/utils/logger.ts:102
isDebugEnabled
▸ isDebugEnabled(): boolean
Returns
boolean
Implementation of
Defined in
packages/agents/src/utils/logger.ts:108
setLevel
▸ setLevel(level): void
Parameters
| Name | Type |
|---|---|
level | UtilLogLevel |
Returns
void
Implementation of
Defined in
packages/agents/src/utils/logger.ts:112
getLevel
▸ getLevel(): UtilLogLevel