2020-10-15 18:42:54 +02:00
|
|
|
---
|
|
|
|
title: danog\MadelineProto\Settings\Logger: Logger settings.
|
|
|
|
description:
|
|
|
|
|
|
|
|
---
|
|
|
|
# `danog\MadelineProto\Settings\Logger`
|
|
|
|
[Back to index](../../../index.md)
|
|
|
|
|
|
|
|
> Author: Daniil Gentili <daniil@daniil.it>
|
|
|
|
|
|
|
|
|
|
|
|
Logger settings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Method list:
|
|
|
|
* `getType()`
|
|
|
|
* `setType(): self`
|
|
|
|
* `getExtra(): null|callable|string`
|
|
|
|
* `setExtra(null|callable|string $extra): self`
|
|
|
|
* `getLevel()`
|
|
|
|
* `setLevel(): self`
|
|
|
|
* `getMaxSize(): int`
|
|
|
|
* `setMaxSize(int $maxSize): self`
|
|
|
|
* `hasChanged(): bool`
|
|
|
|
|
|
|
|
## Methods:
|
|
|
|
### `getType()`
|
|
|
|
|
|
|
|
Get $type Logger type.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `setType(): self`
|
|
|
|
|
|
|
|
Set $type Logger type.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `getExtra(): null|callable|string`
|
|
|
|
|
|
|
|
Get extra parameter for logger.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `setExtra(null|callable|string $extra): self`
|
|
|
|
|
|
|
|
Set extra parameter for logger.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$extra`: `null|callable|string` Extra parameter for logger.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `getLevel()`
|
|
|
|
|
|
|
|
Get logging level.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `setLevel(): self`
|
|
|
|
|
|
|
|
Set logging level.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `getMaxSize(): int`
|
|
|
|
|
|
|
|
Get maximum filesize for logger, in case of file logging.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `setMaxSize(int $maxSize): self`
|
|
|
|
|
|
|
|
Set maximum filesize for logger, in case of file logging.
|
|
|
|
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
* `$maxSize`: `int` Maximum filesize for logger, in case of file logging.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
|
|
|
### `hasChanged(): bool`
|
|
|
|
|
|
|
|
Get whether this setting was changed, also applies changes.
|
|
|
|
|
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|
2020-10-15 18:42:54 +02:00
|
|
|
|
2020-10-15 19:11:10 +02:00
|
|
|
---
|
|
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|