---
url: /api/reference/wxt/interfaces/WxtLogger.md
---

[API](../../packages.md) / [wxt](../index.md) / WxtLogger

# Interface: WxtLogger

Source: [packages/wxt/src/types.ts:670](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L670)

The logger available at `wxt.logger` and `wxt.config.logger`. Extends
[Logger](Logger.md) with a `warnOnce` which only logs a message once per process.

## Contents

* [Extends](#extends)
* [Properties](#properties)
  * [level](#level)
* [Methods](#methods)
  * [debug()](#debug)
  * [error()](#error)
  * [fatal()](#fatal)
  * [info()](#info)
  * [log()](#log)
  * [success()](#success)
  * [warn()](#warn)
  * [warnOnce()](#warnonce)

## Extends

* [`Logger`](Logger.md)

## Properties

### level

> **level**: `LogLevel`

Source: [packages/wxt/src/types.ts:663](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L663)

#### Inherited from

[`Logger`](Logger.md).[`level`](Logger.md#level)

## Methods

### debug()

> **debug**(...`args`): `void`

Source: [packages/wxt/src/types.ts:656](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L656)

#### Parameters

##### args

...`any`\[]

#### Returns

`void`

#### Inherited from

[`Logger`](Logger.md).[`debug`](Logger.md#debug)

***

### error()

> **error**(...`args`): `void`

Source: [packages/wxt/src/types.ts:660](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L660)

#### Parameters

##### args

...`any`\[]

#### Returns

`void`

#### Inherited from

[`Logger`](Logger.md).[`error`](Logger.md#error)

***

### fatal()

> **fatal**(...`args`): `void`

Source: [packages/wxt/src/types.ts:661](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L661)

#### Parameters

##### args

...`any`\[]

#### Returns

`void`

#### Inherited from

[`Logger`](Logger.md).[`fatal`](Logger.md#fatal)

***

### info()

> **info**(...`args`): `void`

Source: [packages/wxt/src/types.ts:658](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L658)

#### Parameters

##### args

...`any`\[]

#### Returns

`void`

#### Inherited from

[`Logger`](Logger.md).[`info`](Logger.md#info)

***

### log()

> **log**(...`args`): `void`

Source: [packages/wxt/src/types.ts:657](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L657)

#### Parameters

##### args

...`any`\[]

#### Returns

`void`

#### Inherited from

[`Logger`](Logger.md).[`log`](Logger.md#log)

***

### success()

> **success**(...`args`): `void`

Source: [packages/wxt/src/types.ts:662](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L662)

#### Parameters

##### args

...`any`\[]

#### Returns

`void`

#### Inherited from

[`Logger`](Logger.md).[`success`](Logger.md#success)

***

### warn()

> **warn**(...`args`): `void`

Source: [packages/wxt/src/types.ts:659](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L659)

#### Parameters

##### args

...`any`\[]

#### Returns

`void`

#### Inherited from

[`Logger`](Logger.md).[`warn`](Logger.md#warn)

***

### warnOnce()

> **warnOnce**(...`args`): `void`

Source: [packages/wxt/src/types.ts:675](https://github.com/wxt-dev/wxt/blob/f7b9c4360e26a0d7dba32427e074c62f60aaf4ac/packages/wxt/src/types.ts#L675)

Same as [Logger.warn](Logger.md#warn), but only logs a given message once per process,
even if called multiple times with the same arguments.

#### Parameters

##### args

...`any`\[]

#### Returns

`void`

***

Generated using [typedoc-plugin-markdown](https://www.npmjs.com/package/typedoc-plugin-markdown) and [TypeDoc](https://typedoc.org/)
