Link Search Menu Expand Document

danog\MadelineProto\PsrLogger

Back to index

Author: Daniil Gentili daniil@daniil.it

PSR-3 wrapper for MadelineProto’s Logger.

Method list:

Methods:

__construct(\danog\MadelineProto\Logger $logger)

Constructor.

Parameters:

  • $logger: \danog\MadelineProto\Logger

See also:

log(mixed $level, mixed $message, array<mixed> $context = []): void

Logs with an arbitrary level.

Parameters:

  • $level: mixed
  • $message: mixed
  • $context: array<mixed>

emergency(Stringable|string $message, array $context = []): void

System is unusable.

Parameters:

  • $message: Stringable|string
  • $context: array

See also:

  • Stringable

alert(Stringable|string $message, array $context = []): void

Action must be taken immediately.

Example: Entire website down, database unavailable, etc. This should
trigger the SMS alerts and wake you up.

Parameters:

  • $message: Stringable|string
  • $context: array

See also:

  • Stringable

critical(Stringable|string $message, array $context = []): void

Critical conditions.

Example: Application component unavailable, unexpected exception.

Parameters:

  • $message: Stringable|string
  • $context: array

See also:

  • Stringable

error(Stringable|string $message, array $context = []): void

Runtime errors that do not require immediate action but should typically be logged and monitored.

Parameters:

  • $message: Stringable|string
  • $context: array

See also:

  • Stringable

warning(Stringable|string $message, array $context = []): void

Exceptional occurrences that are not errors.

Example: Use of deprecated APIs, poor use of an API, undesirable things
that are not necessarily wrong.

Parameters:

  • $message: Stringable|string
  • $context: array

See also:

  • Stringable

notice(Stringable|string $message, array $context = []): void

Normal but significant events.

Parameters:

  • $message: Stringable|string
  • $context: array

See also:

  • Stringable

info(Stringable|string $message, array $context = []): void

Interesting events.

Example: User logs in, SQL logs.

Parameters:

  • $message: Stringable|string
  • $context: array

See also:

  • Stringable

debug(Stringable|string $message, array $context = []): void

Detailed debug information.

Parameters:

  • $message: Stringable|string
  • $context: array

See also:

  • Stringable

Generated by danog/phpdoc