Files
YouTube.js/docs/api/classes/Log.md
2024-10-28 16:07:35 -03:00

162 lines
2.3 KiB
Markdown

[youtubei.js](../README.md) / Log
# Class: Log
## Constructors
### new Log()
> **new Log**(): [`Log`](Log.md)
#### Returns
[`Log`](Log.md)
## Properties
### Level
> `static` **Level**: `object`
#### DEBUG
> **DEBUG**: `number` = `4`
#### ERROR
> **ERROR**: `number` = `1`
#### INFO
> **INFO**: `number` = `3`
#### NONE
> **NONE**: `number` = `0`
#### WARNING
> **WARNING**: `number` = `2`
#### Defined in
[src/utils/Log.ts:4](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/utils/Log.ts#L4)
## Methods
### debug()
> `static` **debug**(`tag`?, ...`args`?): `void`
#### Parameters
**tag?**: `string`
• ...**args?**: `any`[]
#### Returns
`void`
#### Defined in
[src/utils/Log.ts:32](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/utils/Log.ts#L32)
***
### error()
> `static` **error**(`tag`?, ...`args`?): `void`
#### Parameters
**tag?**: `string`
• ...**args?**: `any`[]
#### Returns
`void`
#### Defined in
[src/utils/Log.ts:30](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/utils/Log.ts#L30)
***
### info()
> `static` **info**(`tag`?, ...`args`?): `void`
#### Parameters
**tag?**: `string`
• ...**args?**: `any`[]
#### Returns
`void`
#### Defined in
[src/utils/Log.ts:31](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/utils/Log.ts#L31)
***
### setLevel()
> `static` **setLevel**(...`args`): `void`
#### Parameters
• ...**args**: `number`[]
#### Returns
`void`
#### Defined in
[src/utils/Log.ts:46](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/utils/Log.ts#L46)
***
### warn()
> `static` **warn**(`tag`?, ...`args`?): `void`
#### Parameters
**tag?**: `string`
• ...**args?**: `any`[]
#### Returns
`void`
#### Defined in
[src/utils/Log.ts:29](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/utils/Log.ts#L29)
***
### warnOnce()
> `static` **warnOnce**(`id`, ...`args`): `void`
#### Parameters
**id**: `string`
• ...**args**: `any`[]
#### Returns
`void`
#### Defined in
[src/utils/Log.ts:22](https://github.com/LuanRT/YouTube.js/blob/305a398158a6cac82e6ef288fed4bf1661c89d52/src/utils/Log.ts#L22)