Link Search Menu Expand Document

danog\MadelineProto\Logger

Back to index

Author: Daniil Gentili daniil@daniil.it

Logger class.

Constants

  • danog\MadelineProto\Logger::LEVEL_ULTRA_VERBOSE: Ultra verbose level.

  • danog\MadelineProto\Logger::LEVEL_VERBOSE: Verbose level.

  • danog\MadelineProto\Logger::LEVEL_NOTICE: Notice level.

  • danog\MadelineProto\Logger::LEVEL_WARNING: Warning level.

  • danog\MadelineProto\Logger::LEVEL_ERROR: Error level.

  • danog\MadelineProto\Logger::LEVEL_FATAL: Fatal error level.

  • danog\MadelineProto\Logger::LOGGER_DEFAULT: Default logger (syslog).

  • danog\MadelineProto\Logger::LOGGER_ECHO: Echo logger.

  • danog\MadelineProto\Logger::LOGGER_FILE: File logger.

  • danog\MadelineProto\Logger::LOGGER_CALLABLE: Callable logger.

Method list:

  • constructorFromSettings(\danog\MadelineProto\Settings\Logger $settings): self
  • log(mixed $param, int $level): void
  • logger(mixed $param, int $level, string $file): void
  • getPsrLogger(): \Psr\Log\LoggerInterface

Methods:

constructorFromSettings(\danog\MadelineProto\Settings\Logger $settings): self

Construct global static logger from MadelineProto settings.

Parameters:

  • $settings: \danog\MadelineProto\Settings\Logger Settings instance

See also:

log(mixed $param, int $level): void

Log a message.

Parameters:

  • $param: mixed Message
  • $level: int Logging level

logger(mixed $param, int $level, string $file): void

Log a message.

Parameters:

  • $param: mixed Message to log
  • $level: int Logging level
  • $file: string File that originated the message

getPsrLogger(): \Psr\Log\LoggerInterface

Get PSR logger.

See also:

  • \Psr\Log\LoggerInterface

Generated by danog/phpdoc