Link Search Menu Expand Document

danog\MadelineProto\Settings\Logger

Back to index

Author: Daniil Gentili daniil@daniil.it

Logger settings.

Method list:

Methods:

__construct()

getType(): MadelineProtoLogger::LOGGER_*

Get $type Logger type.

See also:

  • MadelineProtoLogger::LOGGER_*

setType(MadelineProtoLogger::LOGGER_* $type): self

Set $type Logger type.

Parameters:

  • $type: MadelineProtoLogger::LOGGER_* $type Logger type.

See also:

  • MadelineProtoLogger::LOGGER_*

getExtra(): callable|string|null

Get extra parameter for logger.

setExtra((null|callable|string) $extra): self

Set extra parameter for logger.

Parameters:

  • $extra: (null|callable|string) Extra parameter for logger.

getLevel(): MadelineProtoLogger::LEVEL_*

Get logging level.

See also:

  • MadelineProtoLogger::LEVEL_*

setLevel(MadelineProtoLogger::LEVEL_* $level): self

Set logging level.

Parameters:

  • $level: MadelineProtoLogger::LEVEL_* Logging level.

See also:

  • MadelineProtoLogger::LEVEL_*

getMaxSize(): int

Get maximum filesize for logger, in case of file logging.

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.

Generated by danog/phpdoc