abstract class \mpf\loggers\LoggerTrait

abstract class \mpf\loggers\LoggerTrait

Inheritance -
Implements -
Uses -
Childs -
Available since version  0.1
Source Code https://github.com/mpf-soft/mpf/tree/master/loggers/LoggerTrait.php

-no description found-

Attributes
No attributes found for this class!
Methods

public null emergency (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

System is unusable.

public null alert (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

Action must be taken immediately.

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

public null critical (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

Critical conditions.

Example: Application component unavailable, unexpected exception.

public null error (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

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

public null warning (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

Exceptional occurrences that are not errors.

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

public null notice (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

Normal but significant events.

public null info (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

Interesting events.

Example: User logs in, SQL logs.

public null debug (string $message, array $context = [])

  • $message

    -no description found-

  • $context

    -no description found-

Detailed debug information.

public abstract null log (mixed $level, string $message, array $context = [])

  • $level

    -no description found-

  • $message

    -no description found-

  • $context

    -no description found-

Logs with an arbitrary level.