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)
  • log(mixed $param, int $level)
  • logger(mixed $param, int $level, string $file)
  • getPsrLogger()

Methods:

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

Construct global static logger from MadelineProto settings.

Parameters:

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

See also:

log(mixed $param, int $level)

Log a message.

Parameters:

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

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

Log a message.

Parameters:

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

getPsrLogger()

Get PSR logger.


Generated by danog/phpdoc