<!--
 ⚠️  AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
 This file is automatically generated by scripts/docs-generator.js
 To make changes, edit the source TypeScript files or update the generator script
-->

[agents](../../) / [Exports](../modules) / ConsoleLogger

# Class: ConsoleLogger

Console logger implementation

## Implements

- [`ILogger`](../interfaces/ILogger)

## Table of contents

### Constructors

- [constructor](ConsoleLogger#constructor)

### Methods

- [debug](ConsoleLogger#debug)
- [info](ConsoleLogger#info)
- [warn](ConsoleLogger#warn)
- [error](ConsoleLogger#error)
- [isDebugEnabled](ConsoleLogger#isdebugenabled)
- [setLevel](ConsoleLogger#setlevel)
- [getLevel](ConsoleLogger#getlevel)

## Constructors

### constructor

• **new ConsoleLogger**(`packageName`, `logger?`): [`ConsoleLogger`](ConsoleLogger)

#### Parameters

| Name          | Type                                             |
| :------------ | :----------------------------------------------- |
| `packageName` | `string`                                         |
| `logger?`     | [`AbstractLogger`](../interfaces/AbstractLogger) |

#### Returns

[`ConsoleLogger`](ConsoleLogger)

#### Defined in

[packages/agents/src/utils/logger.ts:75](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/utils/logger.ts#L75)

## Methods

### debug

▸ **debug**(`message`, `context?`): `void`

#### Parameters

| Name       | Type                                    |
| :--------- | :-------------------------------------- |
| `message`  | `string`                                |
| `context?` | [`TLoggerData`](../modules#tloggerdata) |

#### Returns

`void`

#### Implementation of

[ILogger](../interfaces/ILogger).[debug](../interfaces/ILogger#debug)

#### Defined in

[packages/agents/src/utils/logger.ts:80](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/utils/logger.ts#L80)

---

### info

▸ **info**(`message`, `context?`): `void`

#### Parameters

| Name       | Type                                    |
| :--------- | :-------------------------------------- |
| `message`  | `string`                                |
| `context?` | [`TLoggerData`](../modules#tloggerdata) |

#### Returns

`void`

#### Implementation of

[ILogger](../interfaces/ILogger).[info](../interfaces/ILogger#info)

#### Defined in

[packages/agents/src/utils/logger.ts:86](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/utils/logger.ts#L86)

---

### warn

▸ **warn**(`message`, `context?`): `void`

#### Parameters

| Name       | Type                                    |
| :--------- | :-------------------------------------- |
| `message`  | `string`                                |
| `context?` | [`TLoggerData`](../modules#tloggerdata) |

#### Returns

`void`

#### Implementation of

[ILogger](../interfaces/ILogger).[warn](../interfaces/ILogger#warn)

#### Defined in

[packages/agents/src/utils/logger.ts:92](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/utils/logger.ts#L92)

---

### error

▸ **error**(`message`, `context?`): `void`

#### Parameters

| Name       | Type                                    |
| :--------- | :-------------------------------------- |
| `message`  | `string`                                |
| `context?` | [`TLoggerData`](../modules#tloggerdata) |

#### Returns

`void`

#### Implementation of

[ILogger](../interfaces/ILogger).[error](../interfaces/ILogger#error)

#### Defined in

[packages/agents/src/utils/logger.ts:98](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/utils/logger.ts#L98)

---

### isDebugEnabled

▸ **isDebugEnabled**(): `boolean`

#### Returns

`boolean`

#### Implementation of

[ILogger](../interfaces/ILogger).[isDebugEnabled](../interfaces/ILogger#isdebugenabled)

#### Defined in

[packages/agents/src/utils/logger.ts:104](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/utils/logger.ts#L104)

---

### setLevel

▸ **setLevel**(`level`): `void`

#### Parameters

| Name    | Type                                        |
| :------ | :------------------------------------------ |
| `level` | [`TUtilLogLevel`](../modules#tutilloglevel) |

#### Returns

`void`

#### Implementation of

[ILogger](../interfaces/ILogger).[setLevel](../interfaces/ILogger#setlevel)

#### Defined in

[packages/agents/src/utils/logger.ts:108](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/utils/logger.ts#L108)

---

### getLevel

▸ **getLevel**(): [`TUtilLogLevel`](../modules#tutilloglevel)

#### Returns

[`TUtilLogLevel`](../modules#tutilloglevel)

#### Implementation of

[ILogger](../interfaces/ILogger).[getLevel](../interfaces/ILogger#getlevel)

#### Defined in

[packages/agents/src/utils/logger.ts:112](https://github.com/woojubb/robota/blob/4f4c8a3197e92ddd43d12dc9186b0771983054c9/packages/agents/src/utils/logger.ts#L112)
